projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdc949
)
kdb: use task_cpu() instead of task_thread_info()->cpu
author
Andy Lutomirski
<luto@kernel.org>
Thu, 28 Jul 2016 22:48:20 +0000
(15:48 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 28 Jul 2016 23:07:41 +0000
(16:07 -0700)
We'll need this cleanup to make the cpu field in thread_info be
optional.
Link:
http://lkml.kernel.org/r/da298328dc77ea494576c2f20a934218e758a6fa.1468523549.git.luto@kernel.org
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kdb.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/kdb.h
b/include/linux/kdb.h
index a19bcf9e762e1d4886e8bd5ed202e4485ba8cf3e..410decacff8fc7907622e99b9cbf7f3c32b1aefb 100644
(file)
--- a/
include/linux/kdb.h
+++ b/
include/linux/kdb.h
@@
-177,7
+177,7
@@
extern int kdb_get_kbd_char(void);
static inline
int kdb_process_cpu(const struct task_struct *p)
{
- unsigned int cpu = task_
thread_info(p)->cpu
;
+ unsigned int cpu = task_
cpu(p)
;
if (cpu > num_possible_cpus())
cpu = 0;
return cpu;