mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
rename thread_info to stack
This finally renames the thread_info field in task structure to stack, so that the assumptions about this field are gone and archs have more freedom about placing the thread_info structure. Nonbroken archs which have a proper thread pointer can do the access to both current thread and task structure via a single pointer. It'll allow for a few more cleanups of the fork code, from which e.g. ia64 could benefit. Signed-off-by: Roman Zippel <[email protected]> [[email protected]: build fix] Cc: Richard Henderson <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Russell King <[email protected]> Cc: Ian Molton <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Mikael Starvik <[email protected]> Cc: David Howells <[email protected]> Cc: Yoshinori Sato <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Hirokazu Takata <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Roman Zippel <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Kazumoto Kojima <[email protected]> Cc: Richard Curnow <[email protected]> Cc: William Lee Irwin III <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Cc: Miles Bader <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Chris Zankel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c9f4f06d31
commit
f7e4217b00
19 changed files with 33 additions and 33 deletions
|
|
@ -58,10 +58,10 @@ do { \
|
|||
(_regs)->pc = (_pc); \
|
||||
if (current->mm) \
|
||||
(_regs)->p5 = current->mm->start_data; \
|
||||
current->thread_info->l1_task_info.stack_start \
|
||||
task_thread_info(current)->l1_task_info.stack_start \
|
||||
= (void *)current->mm->context.stack_start; \
|
||||
current->thread_info->l1_task_info.lowest_sp = (void *)(_usp); \
|
||||
memcpy(L1_SCRATCH_TASK_INFO, ¤t->thread_info->l1_task_info, \
|
||||
task_thread_info(current)->l1_task_info.lowest_sp = (void *)(_usp); \
|
||||
memcpy(L1_SCRATCH_TASK_INFO, &task_thread_info(current)->l1_task_info, \
|
||||
sizeof(*L1_SCRATCH_TASK_INFO)); \
|
||||
wrusp(_usp); \
|
||||
} while(0)
|
||||
|
|
|
|||
|
|
@ -239,9 +239,9 @@ asmlinkage struct task_struct *resume(struct task_struct *prev, struct task_stru
|
|||
|
||||
#define switch_to(prev,next,last) \
|
||||
do { \
|
||||
memcpy (&prev->thread_info->l1_task_info, L1_SCRATCH_TASK_INFO, \
|
||||
memcpy (&task_thread_info(prev)->l1_task_info, L1_SCRATCH_TASK_INFO, \
|
||||
sizeof *L1_SCRATCH_TASK_INFO); \
|
||||
memcpy (L1_SCRATCH_TASK_INFO, &next->thread_info->l1_task_info, \
|
||||
memcpy (L1_SCRATCH_TASK_INFO, &task_thread_info(next)->l1_task_info, \
|
||||
sizeof *L1_SCRATCH_TASK_INFO); \
|
||||
(last) = resume (prev, next); \
|
||||
} while (0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue