microblaze idle: Fix compile error
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 21 Feb 2013 10:15:31 +0000 (10:15 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Feb 2013 23:26:50 +0000 (00:26 +0100)
Commit def8203 ("microblaze idle: delete pm_idle") introduced the following
compile error:

arch/microblaze/kernel/process.c: In function 'cpu_idle':
arch/microblaze/kernel/process.c:100: error: 'idle' undeclared (first use in this function)
arch/microblaze/kernel/process.c:100: error: (Each undeclared identifier is reported only once
arch/microblaze/kernel/process.c:100: error: for each function it appears in.)
arch/microblaze/kernel/process.c:106: error: implicit declaration of function 'idle'

This patch fixes it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/microblaze/kernel/process.c

index 6ff2dcff3410ac854ac13258e87ca613a0472a53..08f87343f8d0afdadcd760c0739e946b8e299c3a 100644 (file)
@@ -97,13 +97,10 @@ void cpu_idle(void)
 
        /* endless idle loop with no priority at all */
        while (1) {
-               if (!idle)
-                       idle = default_idle;
-
                tick_nohz_idle_enter();
                rcu_idle_enter();
                while (!need_resched())
-                       idle();
+                       default_idle();
                rcu_idle_exit();
                tick_nohz_idle_exit();