diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-08-20 09:54:21 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-31 03:35:46 -0400 |
commit | 64fcbac1f38882d8ae82c44a1c2a676cfa5e79e1 (patch) | |
tree | ec1206322a8ca2a775db5ca552d5666b968be77c /arch/x86/include | |
parent | dd3e6e8c6e7a2294f137c4dbccb3e73e7fa8ba15 (diff) |
x86: Simplify timer_ack magic in time_32.c
Let the compiler optimize the timer_ack magic away in the 32bit timer
interrupt and put the same code into time_64.c. It's optimized out for
CONFIG_X86_IO_APIC on 32bit and for 64bit because timer_ack is const 0
in both cases.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/timer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/timer.h b/arch/x86/include/asm/timer.h index e854c7ab4169..65228ccc5f0d 100644 --- a/arch/x86/include/asm/timer.h +++ b/arch/x86/include/asm/timer.h | |||
@@ -9,11 +9,13 @@ | |||
9 | 9 | ||
10 | unsigned long long native_sched_clock(void); | 10 | unsigned long long native_sched_clock(void); |
11 | unsigned long native_calibrate_tsc(void); | 11 | unsigned long native_calibrate_tsc(void); |
12 | extern int recalibrate_cpu_khz(void); | ||
12 | 13 | ||
13 | #ifdef CONFIG_X86_32 | 14 | #if defined(CONFIG_X86_32) && defined(CONFIG_X86_IO_APIC) |
14 | extern int timer_ack; | 15 | extern int timer_ack; |
16 | #else | ||
17 | # define timer_ack (0) | ||
15 | #endif | 18 | #endif |
16 | extern int recalibrate_cpu_khz(void); | ||
17 | 19 | ||
18 | extern int no_timer_check; | 20 | extern int no_timer_check; |
19 | 21 | ||