diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2002-06-17 07:32:01 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-17 07:32:01 -0700 |
| commit | 80a1289d117da179ee39a2249c1089610d6eacb3 (patch) | |
| tree | 107f5abdaed5f2996daa45177aacec3a4031c7f5 /kernel/fork.c | |
| parent | d9083ea2b8d34d827f77e3d8ceeb04c160a938ed (diff) | |
[PATCH] Latest nonlinear CPU patches
This patch removes the concept of "logical" CPU numbers, in
preparation for CPU hotplugging.
Diffstat (limited to 'kernel/fork.c')
| -rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 493139670d30..6f5f85196ba6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -693,9 +693,8 @@ struct task_struct *do_fork(unsigned long clone_flags, int i; /* ?? should we just memset this ?? */ - for(i = 0; i < smp_num_cpus; i++) - p->per_cpu_utime[cpu_logical_map(i)] = - p->per_cpu_stime[cpu_logical_map(i)] = 0; + for(i = 0; i < NR_CPUS; i++) + p->per_cpu_utime[i] = p->per_cpu_stime[i] = 0; spin_lock_init(&p->sigmask_lock); } #endif |
