diff options
author | Andy Lutomirski | 2016-07-29 00:48:20 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-07-29 01:07:41 +0200 |
commit | e558af65be65713ef2e8b2aa637c6263caeed172 (patch) | |
tree | c67c5224e71b07b2bf9280caf45cc3a7d472cf9f | |
parent | mm: fix memcg stack accounting for sub-page stacks (diff) | |
download | kernel-qcow2-linux-e558af65be65713ef2e8b2aa637c6263caeed172.tar.gz kernel-qcow2-linux-e558af65be65713ef2e8b2aa637c6263caeed172.tar.xz kernel-qcow2-linux-e558af65be65713ef2e8b2aa637c6263caeed172.zip |
kdb: use task_cpu() instead of task_thread_info()->cpu
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>
-rw-r--r-- | include/linux/kdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h index a19bcf9e762e..410decacff8f 100644 --- 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; |