kdb: use task_cpu() instead of task_thread_info()->cpu
PATCH 77/101 kdb: use task_cpu() instead of task_thread_info()->cpu
From: Andy Lutomirski <[email protected]>
Subject: 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 open here
Signed-off-by Andy Lutomirski <[email protected]>
Cc Jason Wessel <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/kdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kdb.h renamed from include/linux/kdb.h~kdb-use-task_cpu-instead-of-task_thread_info-cpu +1 -1
@@ -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;
_