diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-02-21 05:15:31 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-22 18:26:50 -0500 |
commit | c192b196d0f3a239f9f056d02a983c48cdf128d9 (patch) | |
tree | 0876cfe6d57c85d2dcc5a22150e15adf07d3db17 | |
parent | eba87ef89f7e669062a14d6008e40a8b8f777e74 (diff) |
microblaze idle: Fix compile error
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>
-rw-r--r-- | arch/microblaze/kernel/process.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index 6ff2dcff3410..08f87343f8d0 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c | |||
@@ -97,13 +97,10 @@ void cpu_idle(void) | |||
97 | 97 | ||
98 | /* endless idle loop with no priority at all */ | 98 | /* endless idle loop with no priority at all */ |
99 | while (1) { | 99 | while (1) { |
100 | if (!idle) | ||
101 | idle = default_idle; | ||
102 | |||
103 | tick_nohz_idle_enter(); | 100 | tick_nohz_idle_enter(); |
104 | rcu_idle_enter(); | 101 | rcu_idle_enter(); |
105 | while (!need_resched()) | 102 | while (!need_resched()) |
106 | idle(); | 103 | default_idle(); |
107 | rcu_idle_exit(); | 104 | rcu_idle_exit(); |
108 | tick_nohz_idle_exit(); | 105 | tick_nohz_idle_exit(); |
109 | 106 | ||