Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164221528
D38971.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
D38971.id.diff
View Options
diff --git a/sys/contrib/rdma/krping/krping.c b/sys/contrib/rdma/krping/krping.c
--- a/sys/contrib/rdma/krping/krping.c
+++ b/sys/contrib/rdma/krping/krping.c
@@ -69,13 +69,7 @@
static __inline uint64_t
get_cycles(void)
{
-#if defined(__amd64__) || defined(__i386__)
- uint32_t low, high;
- __asm __volatile("rdtsc" : "=a" (low), "=d" (high));
- return (low | ((u_int64_t)high << 32));
-#elif defined(__powerpc64__)
- return __builtin_readcyclecounter();
-#endif
+ return (get_cyclecount());
}
typedef uint64_t cycles_t;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 30, 7:04 PM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35753038
Default Alt Text
D38971.id.diff (529 B)
Attached To
Mode
D38971: krping: Use get_cyclecount for get_cycles.
Attached
Detach File
Event Timeline
Log In to Comment