Skip to content

Commit

Permalink
sched/idle: Use explicit broadcast oneshot control function
Browse files Browse the repository at this point in the history
Replace the clockevents_notify() call with an explicit function call.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
KAGA-KOKO authored and Ingo Molnar committed Apr 3, 2015
1 parent a0b4122 commit 335f491
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/sched/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ static void cpuidle_idle_call(void)
* is used from another cpu as a broadcast timer, this call may
* fail if it is not available
*/
if (broadcast &&
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu))
if (broadcast && tick_broadcast_enter())
goto use_default;

/* Take note of the planned idle state. */
Expand All @@ -176,7 +175,7 @@ static void cpuidle_idle_call(void)
idle_set_state(this_rq(), NULL);

if (broadcast)
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu);
tick_broadcast_exit();

/*
* Give the governor an opportunity to reflect on the outcome
Expand Down

0 comments on commit 335f491

Please sign in to comment.