From d73cbc3d0e45ed9c24413c2eec1cae91eb4ad26b Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Thu, 24 Apr 2008 09:02:00 +0800 Subject: [PATCH] --- yaml --- r: 92328 b: refs/heads/master c: 18628e4375264edb53e6d9aaaf91f1a480019304 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-blackfin/thread_info.h | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 0672ed8c9cc6..1e6842cb6e81 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2d191233882a031304f41cfc6abfb70536780645 +refs/heads/master: 18628e4375264edb53e6d9aaaf91f1a480019304 diff --git a/trunk/include/asm-blackfin/thread_info.h b/trunk/include/asm-blackfin/thread_info.h index 15b99cf4f50b..bc2fe5accf20 100644 --- a/trunk/include/asm-blackfin/thread_info.h +++ b/trunk/include/asm-blackfin/thread_info.h @@ -81,14 +81,11 @@ struct thread_info { #define init_thread_info (init_thread_union.thread_info) #define init_stack (init_thread_union.stack) -/* How to get the thread information struct from C */ - -static inline struct thread_info *current_thread_info(void) - __attribute__ ((__const__)); - -/* Given a task stack pointer, you can find it's task structure - * just by masking it to the 8K boundary. +/* Given a task stack pointer, you can find its corresponding + * thread_info structure just by masking it to the THREAD_SIZE + * boundary (currently 8K as you can see above). */ +__attribute_const__ static inline struct thread_info *current_thread_info(void) { struct thread_info *ti;