diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/time_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/tsc_64.c | 12 | ||||
-rw-r--r-- | arch/x86/kernel/tsc_sync.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c index 91d4d495904e..61b17f5ec867 100644 --- a/arch/x86/kernel/time_64.c +++ b/arch/x86/kernel/time_64.c | |||
@@ -83,7 +83,7 @@ unsigned long __init native_calculate_cpu_khz(void) | |||
83 | rdtscl(tsc_start); | 83 | rdtscl(tsc_start); |
84 | do { | 84 | do { |
85 | rdmsrl(MSR_K7_PERFCTR0 + i, pmc_now); | 85 | rdmsrl(MSR_K7_PERFCTR0 + i, pmc_now); |
86 | tsc_now = get_cycles_sync(); | 86 | tsc_now = get_cycles(); |
87 | } while ((tsc_now - tsc_start) < TICK_COUNT); | 87 | } while ((tsc_now - tsc_start) < TICK_COUNT); |
88 | 88 | ||
89 | local_irq_restore(flags); | 89 | local_irq_restore(flags); |
diff --git a/arch/x86/kernel/tsc_64.c b/arch/x86/kernel/tsc_64.c index 3723401c4593..2cc55b726c22 100644 --- a/arch/x86/kernel/tsc_64.c +++ b/arch/x86/kernel/tsc_64.c | |||
@@ -181,12 +181,12 @@ static unsigned long __init tsc_read_refs(unsigned long *pm, | |||
181 | int i; | 181 | int i; |
182 | 182 | ||
183 | for (i = 0; i < MAX_RETRIES; i++) { | 183 | for (i = 0; i < MAX_RETRIES; i++) { |
184 | t1 = get_cycles_sync(); | 184 | t1 = get_cycles(); |
185 | if (hpet) | 185 | if (hpet) |
186 | *hpet = hpet_readl(HPET_COUNTER) & 0xFFFFFFFF; | 186 | *hpet = hpet_readl(HPET_COUNTER) & 0xFFFFFFFF; |
187 | else | 187 | else |
188 | *pm = acpi_pm_read_early(); | 188 | *pm = acpi_pm_read_early(); |
189 | t2 = get_cycles_sync(); | 189 | t2 = get_cycles(); |
190 | if ((t2 - t1) < SMI_TRESHOLD) | 190 | if ((t2 - t1) < SMI_TRESHOLD) |
191 | return t2; | 191 | return t2; |
192 | } | 192 | } |
@@ -210,9 +210,9 @@ void __init tsc_calibrate(void) | |||
210 | outb(0xb0, 0x43); | 210 | outb(0xb0, 0x43); |
211 | outb((CLOCK_TICK_RATE / (1000 / 50)) & 0xff, 0x42); | 211 | outb((CLOCK_TICK_RATE / (1000 / 50)) & 0xff, 0x42); |
212 | outb((CLOCK_TICK_RATE / (1000 / 50)) >> 8, 0x42); | 212 | outb((CLOCK_TICK_RATE / (1000 / 50)) >> 8, 0x42); |
213 | tr1 = get_cycles_sync(); | 213 | tr1 = get_cycles(); |
214 | while ((inb(0x61) & 0x20) == 0); | 214 | while ((inb(0x61) & 0x20) == 0); |
215 | tr2 = get_cycles_sync(); | 215 | tr2 = get_cycles(); |
216 | 216 | ||
217 | tsc2 = tsc_read_refs(&pm2, hpet ? &hpet2 : NULL); | 217 | tsc2 = tsc_read_refs(&pm2, hpet ? &hpet2 : NULL); |
218 | 218 | ||
@@ -300,13 +300,13 @@ __setup("notsc", notsc_setup); | |||
300 | /* clock source code: */ | 300 | /* clock source code: */ |
301 | static cycle_t read_tsc(void) | 301 | static cycle_t read_tsc(void) |
302 | { | 302 | { |
303 | cycle_t ret = (cycle_t)get_cycles_sync(); | 303 | cycle_t ret = (cycle_t)get_cycles(); |
304 | return ret; | 304 | return ret; |
305 | } | 305 | } |
306 | 306 | ||
307 | static cycle_t __vsyscall_fn vread_tsc(void) | 307 | static cycle_t __vsyscall_fn vread_tsc(void) |
308 | { | 308 | { |
309 | cycle_t ret = (cycle_t)vget_cycles_sync(); | 309 | cycle_t ret = (cycle_t)vget_cycles(); |
310 | return ret; | 310 | return ret; |
311 | } | 311 | } |
312 | 312 | ||
diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c index 05d8f25de6ae..ace340524c01 100644 --- a/arch/x86/kernel/tsc_sync.c +++ b/arch/x86/kernel/tsc_sync.c | |||
@@ -46,7 +46,7 @@ static __cpuinit void check_tsc_warp(void) | |||
46 | cycles_t start, now, prev, end; | 46 | cycles_t start, now, prev, end; |
47 | int i; | 47 | int i; |
48 | 48 | ||
49 | start = get_cycles_sync(); | 49 | start = get_cycles(); |
50 | /* | 50 | /* |
51 | * The measurement runs for 20 msecs: | 51 | * The measurement runs for 20 msecs: |
52 | */ | 52 | */ |
@@ -61,7 +61,7 @@ static __cpuinit void check_tsc_warp(void) | |||
61 | */ | 61 | */ |
62 | __raw_spin_lock(&sync_lock); | 62 | __raw_spin_lock(&sync_lock); |
63 | prev = last_tsc; | 63 | prev = last_tsc; |
64 | now = get_cycles_sync(); | 64 | now = get_cycles(); |
65 | last_tsc = now; | 65 | last_tsc = now; |
66 | __raw_spin_unlock(&sync_lock); | 66 | __raw_spin_unlock(&sync_lock); |
67 | 67 | ||