diff options
author | Chuck Ebbert <76306.1226@compuserve.com> | 2006-06-25 14:46:53 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 19:00:55 +0200 |
commit | caad3c2a15dfa2e0da8cf51a57c052372123483c (patch) | |
tree | c9321da5eaa1e71c682aa6f598cff48e4c1406c1 /arch/i386/kernel/doublefault.c | |
parent | [PATCH] cpu_relax(): smpboot.c (diff) | |
download | linux-caad3c2a15dfa2e0da8cf51a57c052372123483c.tar.xz linux-caad3c2a15dfa2e0da8cf51a57c052372123483c.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | arch/i386/kernel/doublefault.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/doublefault.c b/arch/i386/kernel/doublefault.c index 5edb1d379add..b4d14c2eb345 100644 --- a/arch/i386/kernel/doublefault.c +++ b/arch/i386/kernel/doublefault.c @@ -44,7 +44,8 @@ static void doublefault_fn(void) } } - for (;;) /* nothing */; + for (;;) + cpu_relax(); } struct tss_struct doublefault_tss __cacheline_aligned = { |