Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c932c1b7 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Amit Pundir
Browse files

UPSTREAM: kdb: use task_cpu() instead of task_thread_info()->cpu

commit e558af65be65713ef2e8b2aa637c6263caeed172 upstream.

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: default avatarAndy Lutomirski <luto@kernel.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>

Change-Id: I0cd616f086f0eb54ed997ea153382fbf6188dba9
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent dfff30bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;