aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/timer.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-22 11:19:48 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-22 11:19:48 +0100
commitfe88c68919f1e12d726a34cad3ae9f114f93ab17 (patch)
treeb94ab702e1cfd94c57682fb8d9d7296fb14dbd03 /xen/common/timer.c
parent9caa57d3c6711c54f07d8e17979893593f0d0cc8 (diff)
downloadxen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.tar.gz
xen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.tar.bz2
xen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.zip
[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
with for_each_cpu() -- we want to ensure that per_cpu areas are accessed only for cpus in cpu_possible_map. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/timer.c')
-rw-r--r--xen/common/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/timer.c b/xen/common/timer.c
index 8f2fa9964e..618906db38 100644
--- a/xen/common/timer.c
+++ b/xen/common/timer.c
@@ -382,7 +382,7 @@ void __init timer_init(void)
SET_HEAP_SIZE(&dummy_heap, 0);
SET_HEAP_LIMIT(&dummy_heap, 0);
- for ( i = 0; i < NR_CPUS; i++ )
+ for_each_cpu ( i )
{
spin_lock_init(&per_cpu(timers, i).lock);
per_cpu(timers, i).heap = &dummy_heap;