Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Gleixner and committed by
Ingo Molnar
ee41eebf 979081e7

+5 -6
+5 -6
drivers/acpi/processor_idle.c
··· 32 32 #include <linux/acpi.h> 33 33 #include <linux/dmi.h> 34 34 #include <linux/sched.h> /* need_resched() */ 35 - #include <linux/clockchips.h> 35 + #include <linux/tick.h> 36 36 #include <linux/cpuidle.h> 37 37 #include <linux/syscore_ops.h> 38 38 #include <acpi/processor.h> ··· 157 157 static void __lapic_timer_propagate_broadcast(void *arg) 158 158 { 159 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 ? 163 - CLOCK_EVT_NOTIFY_BROADCAST_ON : CLOCK_EVT_NOTIFY_BROADCAST_OFF; 164 - 165 - clockevents_notify(reason, &pr->id); 161 + if (pr->power.timer_broadcast_on_state < INT_MAX) 162 + tick_broadcast_enable(); 163 + else 164 + tick_broadcast_disable(); 166 165 } 167 166 168 167 static void lapic_timer_propagate_broadcast(struct acpi_processor *pr)