smp.c (b5a6b71b1901b9ca495f669c9ad86f2181960aba) | smp.c (e22cf8ca6f75a6c4fccf2d6ee818bdb1205f32e6) |
---|---|
1/* 2 * SMP related functions 3 * 4 * Copyright IBM Corp. 1999, 2012 5 * Author(s): Denis Joseph Barrow, 6 * Martin Schwidefsky <schwidefsky@de.ibm.com>, 7 * Heiko Carstens <heiko.carstens@de.ibm.com>, 8 * --- 248 unchanged lines hidden (view full) --- 257{ 258 struct _lowcore *lc = pcpu->lowcore; 259 struct thread_info *ti = task_thread_info(tsk); 260 261 lc->kernel_stack = (unsigned long) task_stack_page(tsk) 262 + THREAD_SIZE - STACK_FRAME_OVERHEAD - sizeof(struct pt_regs); 263 lc->thread_info = (unsigned long) task_thread_info(tsk); 264 lc->current_task = (unsigned long) tsk; | 1/* 2 * SMP related functions 3 * 4 * Copyright IBM Corp. 1999, 2012 5 * Author(s): Denis Joseph Barrow, 6 * Martin Schwidefsky <schwidefsky@de.ibm.com>, 7 * Heiko Carstens <heiko.carstens@de.ibm.com>, 8 * --- 248 unchanged lines hidden (view full) --- 257{ 258 struct _lowcore *lc = pcpu->lowcore; 259 struct thread_info *ti = task_thread_info(tsk); 260 261 lc->kernel_stack = (unsigned long) task_stack_page(tsk) 262 + THREAD_SIZE - STACK_FRAME_OVERHEAD - sizeof(struct pt_regs); 263 lc->thread_info = (unsigned long) task_thread_info(tsk); 264 lc->current_task = (unsigned long) tsk; |
265 lc->lpp = LPP_MAGIC; 266 lc->current_pid = tsk->pid; |
|
265 lc->user_timer = ti->user_timer; 266 lc->system_timer = ti->system_timer; 267 lc->steal_timer = 0; 268} 269 270static void pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data) 271{ 272 struct _lowcore *lc = pcpu->lowcore; --- 904 unchanged lines hidden --- | 267 lc->user_timer = ti->user_timer; 268 lc->system_timer = ti->system_timer; 269 lc->steal_timer = 0; 270} 271 272static void pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data) 273{ 274 struct _lowcore *lc = pcpu->lowcore; --- 904 unchanged lines hidden --- |