diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:57 -0500 |
commit | b5e2fc1c6259e6f26bc4ae4de697da1f8da0edec (patch) | |
tree | a30c0c897bd0b6e529b6ef760f6bd44775cfb7d3 /arch/ppc/kernel/smp.c | |
parent | ee8c1dd44305cca9d0ded248de991f67b55ec622 (diff) |
[PATCH] powerpc: task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/kernel/smp.c')
-rw-r--r-- | arch/ppc/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc/kernel/smp.c b/arch/ppc/kernel/smp.c index becbfa397556..e55cdda6149a 100644 --- a/arch/ppc/kernel/smp.c +++ b/arch/ppc/kernel/smp.c | |||
@@ -318,7 +318,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
318 | p = fork_idle(cpu); | 318 | p = fork_idle(cpu); |
319 | if (IS_ERR(p)) | 319 | if (IS_ERR(p)) |
320 | panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p)); | 320 | panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p)); |
321 | p->thread_info->cpu = cpu; | 321 | task_thread_info(p)->cpu = cpu; |
322 | idle_tasks[cpu] = p; | 322 | idle_tasks[cpu] = p; |
323 | } | 323 | } |
324 | } | 324 | } |
@@ -369,7 +369,7 @@ int __cpu_up(unsigned int cpu) | |||
369 | char buf[32]; | 369 | char buf[32]; |
370 | int c; | 370 | int c; |
371 | 371 | ||
372 | secondary_ti = idle_tasks[cpu]->thread_info; | 372 | secondary_ti = task_thread_info(idle_tasks[cpu]); |
373 | mb(); | 373 | mb(); |
374 | 374 | ||
375 | /* | 375 | /* |