smp.c (678c668a7732f3a11c25ae86d5737a019667e3c5) smp.c (ed1cd6deb013a11959d17a94e35ce159197632da)
1/*
2 * SMP support for ppc.
3 *
4 * Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great
5 * deal of code from the sparc and intel versions.
6 *
7 * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu>
8 *

--- 974 unchanged lines hidden (view full) ---

983{
984 struct thread_info *ti = task_thread_info(idle);
985
986#ifdef CONFIG_PPC64
987 paca_ptrs[cpu]->__current = idle;
988 paca_ptrs[cpu]->kstack = (unsigned long)task_stack_page(idle) +
989 THREAD_SIZE - STACK_FRAME_OVERHEAD;
990#endif
1/*
2 * SMP support for ppc.
3 *
4 * Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great
5 * deal of code from the sparc and intel versions.
6 *
7 * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu>
8 *

--- 974 unchanged lines hidden (view full) ---

983{
984 struct thread_info *ti = task_thread_info(idle);
985
986#ifdef CONFIG_PPC64
987 paca_ptrs[cpu]->__current = idle;
988 paca_ptrs[cpu]->kstack = (unsigned long)task_stack_page(idle) +
989 THREAD_SIZE - STACK_FRAME_OVERHEAD;
990#endif
991 ti->cpu = cpu;
991 idle->cpu = cpu;
992 secondary_ti = current_set[cpu] = ti;
993}
994
995int __cpu_up(unsigned int cpu, struct task_struct *tidle)
996{
997 int rc, c;
998
999 /*

--- 438 unchanged lines hidden ---
992 secondary_ti = current_set[cpu] = ti;
993}
994
995int __cpu_up(unsigned int cpu, struct task_struct *tidle)
996{
997 int rc, c;
998
999 /*

--- 438 unchanged lines hidden ---