Commit ee41eebf authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

ACPI/processor: Use explicit broadcast control function

Replace the clockevents_notify() call with an explicit function call.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/25071624.dkenaL3SGT@vostro.rjw.lanSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 979081e7
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#include <linux/sched.h> /* need_resched() */ #include <linux/sched.h> /* need_resched() */
#include <linux/clockchips.h> #include <linux/tick.h>
#include <linux/cpuidle.h> #include <linux/cpuidle.h>
#include <linux/syscore_ops.h> #include <linux/syscore_ops.h>
#include <acpi/processor.h> #include <acpi/processor.h>
...@@ -157,12 +157,11 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr, ...@@ -157,12 +157,11 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr,
static void __lapic_timer_propagate_broadcast(void *arg) static void __lapic_timer_propagate_broadcast(void *arg)
{ {
struct acpi_processor *pr = (struct acpi_processor *) arg; struct acpi_processor *pr = (struct acpi_processor *) arg;
unsigned long reason;
reason = pr->power.timer_broadcast_on_state < INT_MAX ? if (pr->power.timer_broadcast_on_state < INT_MAX)
CLOCK_EVT_NOTIFY_BROADCAST_ON : CLOCK_EVT_NOTIFY_BROADCAST_OFF; tick_broadcast_enable();
else
clockevents_notify(reason, &pr->id); tick_broadcast_disable();
} }
static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) static void lapic_timer_propagate_broadcast(struct acpi_processor *pr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment