x86: Simplify timer_ack magic in time_32.c
authorThomas Gleixner <tglx@linutronix.de>
Thu, 20 Aug 2009 13:54:21 +0000 (15:54 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Aug 2009 07:35:46 +0000 (09:35 +0200)
commit64fcbac1f38882d8ae82c44a1c2a676cfa5e79e1
treeec1206322a8ca2a775db5ca552d5666b968be77c
parentdd3e6e8c6e7a2294f137c4dbccb3e73e7fa8ba15
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>
arch/x86/include/asm/timer.h
arch/x86/kernel/time_32.c
arch/x86/kernel/time_64.c