Skip to content

Commit

Permalink
C6X: replace tick_nohz_stop/restart_sched_tick calls
Browse files Browse the repository at this point in the history
The following commits replaced the tick_nohz_{stop,restart}_sched_tick
API with separate tick and rcu calls:

  280f067
  2bbb681
  1268fbc

This patch replaces the C6X use of the old API with the newer interfaces.

Signed-off-by: Mark Salter <msalter@redhat.com>
  • Loading branch information
Mark Salter committed Jan 8, 2012
1 parent 7123a6c commit 166c0ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/c6x/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ void cpu_idle(void)
{
/* endless idle loop with no priority at all */
while (1) {
tick_nohz_stop_sched_tick(1);
tick_nohz_idle_enter();
rcu_idle_enter();
while (1) {
local_irq_disable();
if (need_resched()) {
Expand All @@ -80,7 +81,8 @@ void cpu_idle(void)
}
c6x_idle(); /* enables local irqs */
}
tick_nohz_restart_sched_tick();
rcu_idle_exit();
tick_nohz_idle_exit();

preempt_enable_no_resched();
schedule();
Expand Down

0 comments on commit 166c0ea

Please sign in to comment.