Loading arch/mips/kernel/idle.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -34,6 +34,7 @@ static void r3081_wait(void) { { unsigned long cfg = read_c0_conf(); unsigned long cfg = read_c0_conf(); write_c0_conf(cfg | R30XX_CONF_HALT); write_c0_conf(cfg | R30XX_CONF_HALT); local_irq_enable(); } } static void r39xx_wait(void) static void r39xx_wait(void) Loading Loading @@ -109,6 +110,7 @@ static void au1k_wait(void) " nop \n" " nop \n" " .set mips0 \n" " .set mips0 \n" : : "r" (au1k_wait)); : : "r" (au1k_wait)); local_irq_enable(); } } static int __initdata nowait; static int __initdata nowait; Loading drivers/cpufreq/loongson2_cpufreq.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -200,6 +200,7 @@ static void loongson2_cpu_wait(void) LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ spin_unlock_irqrestore(&loongson2_wait_lock, flags); spin_unlock_irqrestore(&loongson2_wait_lock, flags); local_irq_enable(); } } static int __init cpufreq_init(void) static int __init cpufreq_init(void) Loading Loading
arch/mips/kernel/idle.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -34,6 +34,7 @@ static void r3081_wait(void) { { unsigned long cfg = read_c0_conf(); unsigned long cfg = read_c0_conf(); write_c0_conf(cfg | R30XX_CONF_HALT); write_c0_conf(cfg | R30XX_CONF_HALT); local_irq_enable(); } } static void r39xx_wait(void) static void r39xx_wait(void) Loading Loading @@ -109,6 +110,7 @@ static void au1k_wait(void) " nop \n" " nop \n" " .set mips0 \n" " .set mips0 \n" : : "r" (au1k_wait)); : : "r" (au1k_wait)); local_irq_enable(); } } static int __initdata nowait; static int __initdata nowait; Loading
drivers/cpufreq/loongson2_cpufreq.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -200,6 +200,7 @@ static void loongson2_cpu_wait(void) LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ spin_unlock_irqrestore(&loongson2_wait_lock, flags); spin_unlock_irqrestore(&loongson2_wait_lock, flags); local_irq_enable(); } } static int __init cpufreq_init(void) static int __init cpufreq_init(void) Loading