]> git.baikalelectronics.ru Git - kernel.git/commitdiff
C6X: replace tick_nohz_stop/restart_sched_tick calls
authorMark Salter <msalter@redhat.com>
Sun, 8 Jan 2012 18:25:56 +0000 (13:25 -0500)
committerMark Salter <msalter@redhat.com>
Sun, 8 Jan 2012 20:13:16 +0000 (15:13 -0500)
The following commits replaced the tick_nohz_{stop,restart}_sched_tick
API with separate tick and rcu calls:

  1a4ebae5dad62b7af69a449f271d46b8597e6b9c
  4aff6d0b335fa4ae338f21780a1410b0cfe5dc56
  fffcd3b69721146276f995e4a16c1fe9e04a9c12

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

Signed-off-by: Mark Salter <msalter@redhat.com>
arch/c6x/kernel/process.c

index aa65c879323b270c613a631f282c43176956edac..7ca8c41b03cd801519813e1983f84c0b8aa4cbd8 100644 (file)
@@ -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()) {
@@ -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();