3 * test async tsc on AMD.
7 #include <asm/atomic.h>
8 #include <linux/module.h>
13 static int __init
test_init(void)
16 cycles_t time1
, time2
;
17 volatile unsigned long myval
;
21 //printk("time %llu\n", ltt_tsc_read());
22 //myval = ltt_tsc_read();
23 myval
= hpet_readl(HPET_COUNTER
);
26 printk("timediff %llu\n", time2
-time1
);
30 static void __exit
test_exit(void)
34 module_init(test_init
);
35 module_exit(test_exit
);
37 MODULE_LICENSE("GPL");
38 MODULE_AUTHOR("Mathieu Desnoyers");
39 MODULE_DESCRIPTION("sync async tsc");
This page took 0.033262 seconds and 4 git commands to generate.