mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-16 04:47:43 +07:00
[PATCH] i386: cpu_relax() in crash.c and doublefault.c
Add cpu_relax() to infinite loops in crash.c and doublefault.c. This is the safest change. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
186989177e
commit
caad3c2a15
@ -114,7 +114,8 @@ static int crash_nmi_callback(struct pt_regs *regs, int cpu)
|
|||||||
atomic_dec(&waiting_for_crash_ipi);
|
atomic_dec(&waiting_for_crash_ipi);
|
||||||
/* Assume hlt works */
|
/* Assume hlt works */
|
||||||
halt();
|
halt();
|
||||||
for(;;);
|
for (;;)
|
||||||
|
cpu_relax();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,8 @@ static void doublefault_fn(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (;;) /* nothing */;
|
for (;;)
|
||||||
|
cpu_relax();
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tss_struct doublefault_tss __cacheline_aligned = {
|
struct tss_struct doublefault_tss __cacheline_aligned = {
|
||||||
|
Loading…
Reference in New Issue
Block a user