ACPI/PAD: 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: Len Brown <lenb@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1521832.mm0ZfkTzTA@vostro.rjw.lan Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
162a688e84
commit
979081e744
@ -26,7 +26,7 @@
|
|||||||
#include <linux/kthread.h>
|
#include <linux/kthread.h>
|
||||||
#include <linux/freezer.h>
|
#include <linux/freezer.h>
|
||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
#include <linux/clockchips.h>
|
#include <linux/tick.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/acpi.h>
|
#include <linux/acpi.h>
|
||||||
#include <asm/mwait.h>
|
#include <asm/mwait.h>
|
||||||
@ -172,9 +172,8 @@ static int power_saving_thread(void *data)
|
|||||||
mark_tsc_unstable("TSC halts in idle");
|
mark_tsc_unstable("TSC halts in idle");
|
||||||
tsc_marked_unstable = 1;
|
tsc_marked_unstable = 1;
|
||||||
}
|
}
|
||||||
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ON, &cpu);
|
|
||||||
|
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
|
tick_broadcast_enable();
|
||||||
cpu = smp_processor_id();
|
cpu = smp_processor_id();
|
||||||
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu);
|
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu);
|
||||||
stop_critical_timings();
|
stop_critical_timings();
|
||||||
|
Loading…
Reference in New Issue
Block a user