diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2008-04-23 21:02:00 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-23 21:02:00 -0400 |
commit | 18628e4375264edb53e6d9aaaf91f1a480019304 (patch) | |
tree | b6a630f26456c892295c41ccdd8e65ae5b497837 | |
parent | 2d191233882a031304f41cfc6abfb70536780645 (diff) |
[Blackfin] arch: Clean up the definition and correct the commentary for current_thread_info().
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Acked-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r-- | include/asm-blackfin/thread_info.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/asm-blackfin/thread_info.h b/include/asm-blackfin/thread_info.h index 15b99cf4f50..bc2fe5accf2 100644 --- a/include/asm-blackfin/thread_info.h +++ b/include/asm-blackfin/thread_info.h | |||
@@ -81,14 +81,11 @@ struct thread_info { | |||
81 | #define init_thread_info (init_thread_union.thread_info) | 81 | #define init_thread_info (init_thread_union.thread_info) |
82 | #define init_stack (init_thread_union.stack) | 82 | #define init_stack (init_thread_union.stack) |
83 | 83 | ||
84 | /* How to get the thread information struct from C */ | 84 | /* Given a task stack pointer, you can find its corresponding |
85 | 85 | * thread_info structure just by masking it to the THREAD_SIZE | |
86 | static inline struct thread_info *current_thread_info(void) | 86 | * boundary (currently 8K as you can see above). |
87 | __attribute__ ((__const__)); | ||
88 | |||
89 | /* Given a task stack pointer, you can find it's task structure | ||
90 | * just by masking it to the 8K boundary. | ||
91 | */ | 87 | */ |
88 | __attribute_const__ | ||
92 | static inline struct thread_info *current_thread_info(void) | 89 | static inline struct thread_info *current_thread_info(void) |
93 | { | 90 | { |
94 | struct thread_info *ti; | 91 | struct thread_info *ti; |