summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/hrtimer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index b17657d..2bd230b 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -1395,15 +1395,11 @@ void hrtimer_peek_ahead_timers(void)
unsigned long flags;
struct tick_device *td;
struct clock_event_device *dev;
- struct hrtimer_cpu_base *cpu_base;
- if (hrtimer_hres_active())
+
+ if (!hrtimer_hres_active())
return;
local_irq_save(flags);
- cpu_base = &__get_cpu_var(hrtimer_bases);
- if (!cpu_base->hres_active)
- goto out;
-
td = &__get_cpu_var(tick_cpu_device);
if (!td)
goto out;
OpenPOWER on IntegriCloud