diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-04-02 20:02:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-04-03 02:44:32 -0400 |
commit | ee41eebf9cef624b2e766a4b8688eeeedb65114c (patch) | |
tree | e11e2578b5a553281a18055dd31ff7c002580768 /drivers/acpi | |
parent | 979081e7440056da28b19e57acf20098caf49103 (diff) |
ACPI/processor: Use explicit broadcast control function
Replace the clockevents_notify() call with an explicit function call.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/25071624.dkenaL3SGT@vostro.rjw.lan
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/processor_idle.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index c6bb9f1257c9..be5479739287 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/acpi.h> | 32 | #include <linux/acpi.h> |
33 | #include <linux/dmi.h> | 33 | #include <linux/dmi.h> |
34 | #include <linux/sched.h> /* need_resched() */ | 34 | #include <linux/sched.h> /* need_resched() */ |
35 | #include <linux/clockchips.h> | 35 | #include <linux/tick.h> |
36 | #include <linux/cpuidle.h> | 36 | #include <linux/cpuidle.h> |
37 | #include <linux/syscore_ops.h> | 37 | #include <linux/syscore_ops.h> |
38 | #include <acpi/processor.h> | 38 | #include <acpi/processor.h> |
@@ -157,12 +157,11 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr, | |||
157 | static void __lapic_timer_propagate_broadcast(void *arg) | 157 | static void __lapic_timer_propagate_broadcast(void *arg) |
158 | { | 158 | { |
159 | struct acpi_processor *pr = (struct acpi_processor *) arg; | 159 | struct acpi_processor *pr = (struct acpi_processor *) arg; |
160 | unsigned long reason; | ||
161 | 160 | ||
162 | reason = pr->power.timer_broadcast_on_state < INT_MAX ? | 161 | if (pr->power.timer_broadcast_on_state < INT_MAX) |
163 | CLOCK_EVT_NOTIFY_BROADCAST_ON : CLOCK_EVT_NOTIFY_BROADCAST_OFF; | 162 | tick_broadcast_enable(); |
164 | 163 | else | |
165 | clockevents_notify(reason, &pr->id); | 164 | tick_broadcast_disable(); |
166 | } | 165 | } |
167 | 166 | ||
168 | static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) | 167 | static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) |