Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1443706 > unrolled thread

[PATCH 3/4] kdb: Use task_cpu() instead of task_thread_info()->cpu

Started byAndy Lutomirski <luto@kernel.org>
First post2016-07-14 21:20 +0200
Last post2016-07-14 21:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] kdb: Use task_cpu() instead of task_thread_info()->cpu Andy Lutomirski <luto@kernel.org> - 2016-07-14 21:20 +0200

#1443706 — [PATCH 3/4] kdb: Use task_cpu() instead of task_thread_info()->cpu

FromAndy Lutomirski <luto@kernel.org>
Date2016-07-14 21:20 +0200
Subject[PATCH 3/4] kdb: Use task_cpu() instead of task_thread_info()->cpu
Message-ID<rUUkV-5fo-5@gated-at.bofh.it>
We'll need this cleanup to make the cpu field in thread_info be
optional.

Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 include/linux/kdb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web