projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1b7509
)
[S390] current_thread_info optimization
author
Martin Schwidefsky
<
[email protected]
>
Wed, 5 Jan 2011 11:47:42 +0000
(12:47 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Wed, 5 Jan 2011 11:47:27 +0000
(12:47 +0100)
Use thread_info lowcore field for current_thread_info(), saves
an unnecessary calculation.
Signed-off-by: Martin Schwidefsky <
[email protected]
>
arch/s390/include/asm/thread_info.h
patch
|
blob
|
history
diff --git
a/arch/s390/include/asm/thread_info.h
b/arch/s390/include/asm/thread_info.h
index 5baf0230b29b060e4cbc9f0e75527030d94318c8..81452021794538fed9e589bb106dd71b8ad34669 100644
(file)
--- a/
arch/s390/include/asm/thread_info.h
+++ b/
arch/s390/include/asm/thread_info.h
@@
-74,7
+74,7
@@
struct thread_info {
/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
- return (struct thread_info *)
(S390_lowcore.kernel_stack - THREAD_SIZE)
;
+ return (struct thread_info *)
S390_lowcore.thread_info
;
}
#define THREAD_SIZE_ORDER THREAD_ORDER