mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
New kernel option nowait allows disabling the use of the wait instruction.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
569f75bd02
commit
55d04dff0f
@ -71,11 +71,27 @@ static void au1k_wait(void)
|
||||
: : "r" (au1k_wait));
|
||||
}
|
||||
|
||||
static int __initdata nowait = 0;
|
||||
|
||||
int __init wait_disable(char *s)
|
||||
{
|
||||
nowait = 1;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
__setup("nowait", wait_disable);
|
||||
|
||||
static inline void check_wait(void)
|
||||
{
|
||||
struct cpuinfo_mips *c = ¤t_cpu_data;
|
||||
|
||||
printk("Checking for 'wait' instruction... ");
|
||||
if (nowait) {
|
||||
printk (" disabled.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
switch (c->cputype) {
|
||||
case CPU_R3081:
|
||||
case CPU_R3081E:
|
||||
|
Loading…
Reference in New Issue
Block a user