diff options
| author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:36 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:50 -0500 |
| commit | 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8 (patch) | |
| tree | baa1ce07e948e5b91cfb3cd5d139f8d45e1ba325 /include/asm-alpha | |
| parent | 9fc658763bf992e778243ebe898b03746151ab88 (diff) | |
[PATCH] alpha: task_thread_info()
use task_thread_info() for accesses to thread_info of task in arch/alpha
and include/asm-alpha
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 'include/asm-alpha')
| -rw-r--r-- | include/asm-alpha/mmu_context.h | 6 | ||||
| -rw-r--r-- | include/asm-alpha/processor.h | 2 | ||||
| -rw-r--r-- | include/asm-alpha/system.h | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-alpha/mmu_context.h b/include/asm-alpha/mmu_context.h index a714d0cdc204..6f92482cc96c 100644 --- a/include/asm-alpha/mmu_context.h +++ b/include/asm-alpha/mmu_context.h | |||
| @@ -156,7 +156,7 @@ ev5_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, | |||
| 156 | /* Always update the PCB ASN. Another thread may have allocated | 156 | /* Always update the PCB ASN. Another thread may have allocated |
| 157 | a new mm->context (via flush_tlb_mm) without the ASN serial | 157 | a new mm->context (via flush_tlb_mm) without the ASN serial |
| 158 | number wrapping. We have no way to detect when this is needed. */ | 158 | number wrapping. We have no way to detect when this is needed. */ |
| 159 | next->thread_info->pcb.asn = mmc & HARDWARE_ASN_MASK; | 159 | task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK; |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | __EXTERN_INLINE void | 162 | __EXTERN_INLINE void |
| @@ -235,7 +235,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) | |||
| 235 | if (cpu_online(i)) | 235 | if (cpu_online(i)) |
| 236 | mm->context[i] = 0; | 236 | mm->context[i] = 0; |
| 237 | if (tsk != current) | 237 | if (tsk != current) |
| 238 | tsk->thread_info->pcb.ptbr | 238 | task_thread_info(tsk)->pcb.ptbr |
| 239 | = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; | 239 | = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; |
| 240 | return 0; | 240 | return 0; |
| 241 | } | 241 | } |
| @@ -249,7 +249,7 @@ destroy_context(struct mm_struct *mm) | |||
| 249 | static inline void | 249 | static inline void |
| 250 | enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | 250 | enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) |
| 251 | { | 251 | { |
| 252 | tsk->thread_info->pcb.ptbr | 252 | task_thread_info(tsk)->pcb.ptbr |
| 253 | = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; | 253 | = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; |
| 254 | } | 254 | } |
| 255 | 255 | ||
diff --git a/include/asm-alpha/processor.h b/include/asm-alpha/processor.h index bb1a7a3abb8b..12a14a5bbe12 100644 --- a/include/asm-alpha/processor.h +++ b/include/asm-alpha/processor.h | |||
| @@ -64,7 +64,7 @@ unsigned long get_wchan(struct task_struct *p); | |||
| 64 | (*(unsigned long *)(PT_REG(pc) + (unsigned long) ((tsk)->thread_info))) | 64 | (*(unsigned long *)(PT_REG(pc) + (unsigned long) ((tsk)->thread_info))) |
| 65 | 65 | ||
| 66 | #define KSTK_ESP(tsk) \ | 66 | #define KSTK_ESP(tsk) \ |
| 67 | ((tsk) == current ? rdusp() : (tsk)->thread_info->pcb.usp) | 67 | ((tsk) == current ? rdusp() : task_thread_info(tsk)->pcb.usp) |
| 68 | 68 | ||
| 69 | #define cpu_relax() barrier() | 69 | #define cpu_relax() barrier() |
| 70 | 70 | ||
diff --git a/include/asm-alpha/system.h b/include/asm-alpha/system.h index 766ab868e8ab..cc9c7e8cced5 100644 --- a/include/asm-alpha/system.h +++ b/include/asm-alpha/system.h | |||
| @@ -131,10 +131,10 @@ struct el_common_EV6_mcheck { | |||
| 131 | extern void halt(void) __attribute__((noreturn)); | 131 | extern void halt(void) __attribute__((noreturn)); |
| 132 | #define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt)) | 132 | #define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt)) |
| 133 | 133 | ||
| 134 | #define switch_to(P,N,L) \ | 134 | #define switch_to(P,N,L) \ |
| 135 | do { \ | 135 | do { \ |
| 136 | (L) = alpha_switch_to(virt_to_phys(&(N)->thread_info->pcb), (P)); \ | 136 | (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \ |
| 137 | check_mmu_context(); \ | 137 | check_mmu_context(); \ |
| 138 | } while (0) | 138 | } while (0) |
| 139 | 139 | ||
| 140 | struct task_struct; | 140 | struct task_struct; |
