提交 18628e43 编写于 作者: R Robert P. J. Day 提交者: Bryan Wu

[Blackfin] arch: Clean up the definition and correct the commentary for current_thread_info().

Signed-off-by: NRobert P. J. Day <rpjday@crashcourse.ca>
Acked-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 2d191233
...@@ -81,14 +81,11 @@ struct thread_info { ...@@ -81,14 +81,11 @@ struct thread_info {
#define init_thread_info (init_thread_union.thread_info) #define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack) #define init_stack (init_thread_union.stack)
/* How to get the thread information struct from C */ /* Given a task stack pointer, you can find its corresponding
* thread_info structure just by masking it to the THREAD_SIZE
static inline struct thread_info *current_thread_info(void) * boundary (currently 8K as you can see above).
__attribute__ ((__const__));
/* Given a task stack pointer, you can find it's task structure
* just by masking it to the 8K boundary.
*/ */
__attribute_const__
static inline struct thread_info *current_thread_info(void) static inline struct thread_info *current_thread_info(void)
{ {
struct thread_info *ti; struct thread_info *ti;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册