Skip to content

Commit

Permalink
sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
Browse files Browse the repository at this point in the history
cpuidle wants ARCH_HAS_DEFAULT_IDLE defined in order to use the
default idle loop. So, make it accessible and enable it for all
sh machines.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Apr 2, 2009
1 parent eeee785 commit e869a90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ config ARCH_HAS_ILOG2_U64
config ARCH_NO_VIRT_TO_BUS
def_bool y

config ARCH_HAS_DEFAULT_IDLE
def_bool y

config IO_TRAPPED
bool

Expand Down
1 change: 1 addition & 0 deletions arch/sh/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ extern unsigned long cached_to_uncached;
extern struct dentry *sh_debugfs_root;

void per_cpu_trap_init(void);
void default_idle(void);

asmlinkage void break_point_trap(void);

Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int __init hlt_setup(char *__unused)
}
__setup("hlt", hlt_setup);

static void default_idle(void)
void default_idle(void)
{
if (!hlt_counter) {
clear_thread_flag(TIF_POLLING_NRFLAG);
Expand Down

0 comments on commit e869a90

Please sign in to comment.