projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f802f0
)
[IA64] improve __cpu_die()
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Mon, 28 Jul 2008 08:29:09 +0000
(17:29 +0900)
committer
Isaku Yamahata
<yamahata@valinux.co.jp>
Mon, 28 Jul 2008 08:29:09 +0000
(17:29 +0900)
use udelay instead of nop loop.
This patch reduces __cpu_die() time much.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/linux-xen/smpboot.c
patch
|
blob
|
history
diff --git
a/xen/arch/ia64/linux-xen/smpboot.c
b/xen/arch/ia64/linux-xen/smpboot.c
index cb3ee1629187f88ce3b040cd920a2b63dcb61144..0cc4de2cd5d8b693069e2e8e3cca8b1bf5ec30ea 100644
(file)
--- a/
xen/arch/ia64/linux-xen/smpboot.c
+++ b/
xen/arch/ia64/linux-xen/smpboot.c
@@
-748,9
+748,7
@@
void __cpu_die(unsigned int cpu)
return;
}
#ifdef XEN
- /* XXX: There must be a better way to sleep */
- for (int j = 0; j < 1000000; j++)
- cpu_relax();
+ udelay(100 * 1000);
#else
msleep(100);
#endif