diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2009-03-23 09:50:03 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-03-23 16:20:20 -0400 |
| commit | 80c5520811d3805adcb15c570ea5e2d489fa5d0b (patch) | |
| tree | ae797a7f4af39f80e77526533d06ac23b439f0ab /arch/x86/kernel/vmiclock_32.c | |
| parent | b3e3b302cf6dc8d60b67f0e84d1fa5648889c038 (diff) | |
| parent | 8c083f081d0014057901c68a0a3e0f8ca7ac8d23 (diff) | |
Merge branch 'cpus4096' into irq/threaded
Conflicts:
arch/parisc/kernel/irq.c
kernel/irq/handle.c
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/vmiclock_32.c')
| -rw-r--r-- | arch/x86/kernel/vmiclock_32.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/vmiclock_32.c b/arch/x86/kernel/vmiclock_32.c index e5b088fffa40..33a788d5879c 100644 --- a/arch/x86/kernel/vmiclock_32.c +++ b/arch/x86/kernel/vmiclock_32.c | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | 28 | ||
| 29 | #include <asm/vmi.h> | 29 | #include <asm/vmi.h> |
| 30 | #include <asm/vmi_time.h> | 30 | #include <asm/vmi_time.h> |
| 31 | #include <asm/arch_hooks.h> | ||
| 32 | #include <asm/apicdef.h> | 31 | #include <asm/apicdef.h> |
| 33 | #include <asm/apic.h> | 32 | #include <asm/apic.h> |
| 34 | #include <asm/timer.h> | 33 | #include <asm/timer.h> |
| @@ -256,7 +255,7 @@ void __devinit vmi_time_bsp_init(void) | |||
| 256 | */ | 255 | */ |
| 257 | clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); | 256 | clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); |
| 258 | local_irq_disable(); | 257 | local_irq_disable(); |
| 259 | #ifdef CONFIG_X86_SMP | 258 | #ifdef CONFIG_SMP |
| 260 | /* | 259 | /* |
| 261 | * XXX handle_percpu_irq only defined for SMP; we need to switch over | 260 | * XXX handle_percpu_irq only defined for SMP; we need to switch over |
| 262 | * to using it, since this is a local interrupt, which each CPU must | 261 | * to using it, since this is a local interrupt, which each CPU must |
| @@ -288,8 +287,7 @@ static struct clocksource clocksource_vmi; | |||
| 288 | static cycle_t read_real_cycles(void) | 287 | static cycle_t read_real_cycles(void) |
| 289 | { | 288 | { |
| 290 | cycle_t ret = (cycle_t)vmi_timer_ops.get_cycle_counter(VMI_CYCLES_REAL); | 289 | cycle_t ret = (cycle_t)vmi_timer_ops.get_cycle_counter(VMI_CYCLES_REAL); |
| 291 | return ret >= clocksource_vmi.cycle_last ? | 290 | return max(ret, clocksource_vmi.cycle_last); |
| 292 | ret : clocksource_vmi.cycle_last; | ||
| 293 | } | 291 | } |
| 294 | 292 | ||
| 295 | static struct clocksource clocksource_vmi = { | 293 | static struct clocksource clocksource_vmi = { |
