24 #include <linux/kernel.h>
25 #include <linux/module.h>
34 static int pm_tmr_ioport = 0;
37 static u32 read_pmtmr(
void)
46 v1 =
inl(pm_tmr_ioport);
47 v2 =
inl(pm_tmr_ioport);
48 v3 =
inl(pm_tmr_ioport);
49 }
while ((v1 >
v2 && v1 <
v3) || (
v2 >
v3 &&
v2 < v1)
53 return (
v2 & 0xFFFFFF);
56 static int __init cpufreq_test_tsc(
void)
59 u64 now_tsc, then_tsc, diff_tsc;
92 diff = (now - then) & 0xFFFFFF;
93 diff_tsc = now_tsc - then_tsc;
94 printk(
KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_tsc);
102 static void __exit cpufreq_none(
void)