Skip to content

Commit

Permalink
microblaze idle: Fix compile error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Rafael J. Wysocki committed Feb 22, 2013
1 parent eba87ef commit c192b19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/microblaze/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit c192b19

Please sign in to comment.