mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:20:52 +07:00
sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
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>
This commit is contained in:
parent
eeee7853c4
commit
e869a90ee1
@ -130,6 +130,9 @@ config ARCH_HAS_ILOG2_U64
|
|||||||
config ARCH_NO_VIRT_TO_BUS
|
config ARCH_NO_VIRT_TO_BUS
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
|
config ARCH_HAS_DEFAULT_IDLE
|
||||||
|
def_bool y
|
||||||
|
|
||||||
config IO_TRAPPED
|
config IO_TRAPPED
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
@ -153,6 +153,7 @@ extern unsigned long cached_to_uncached;
|
|||||||
extern struct dentry *sh_debugfs_root;
|
extern struct dentry *sh_debugfs_root;
|
||||||
|
|
||||||
void per_cpu_trap_init(void);
|
void per_cpu_trap_init(void);
|
||||||
|
void default_idle(void);
|
||||||
|
|
||||||
asmlinkage void break_point_trap(void);
|
asmlinkage void break_point_trap(void);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static int __init hlt_setup(char *__unused)
|
|||||||
}
|
}
|
||||||
__setup("hlt", hlt_setup);
|
__setup("hlt", hlt_setup);
|
||||||
|
|
||||||
static void default_idle(void)
|
void default_idle(void)
|
||||||
{
|
{
|
||||||
if (!hlt_counter) {
|
if (!hlt_counter) {
|
||||||
clear_thread_flag(TIF_POLLING_NRFLAG);
|
clear_thread_flag(TIF_POLLING_NRFLAG);
|
||||||
|
Loading…
Reference in New Issue
Block a user