Skip to contentSkip to conversation

linux-next: manual merge of the percpu tree with the s390 tree

PATCH Stephen Rothwell 1 participant 1 message Oct 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the percpu tree got a conflict in arch/s390/kernel/vtime.c between commit 4dc0f1e9c0a9 ("s390/idle:
consolidate idle functions and definitions") from the s390 tree and commit eb7e7d766326 ("s390: Replace __get_cpu_var uses") from the percpu tree.

I fixed it up (the former moved the code modified by the latter into a new file, so I just removed the code and added the patch below) and can carry the fix as necessary (no action is required).

From: Stephen Rothwell <[email protected]>
Date: Tue, 7 Oct 2014 16:44:38 +1100
Subject: [PATCH] s390: fixup for Replace __get_cpu_var uses

---
 arch/s390/kernel/idle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kernel/idle.c +1 -1
index c75fbae1e37e..9d19a91dc6a6 100644
@@ -20,7 +20,7 @@ static DEFINE_PER_CPU(struct s390_idle_data, s390_idle);
 
 void __kprobes enabled_wait(void)
 {
-	struct s390_idle_data *idle = &__get_cpu_var(s390_idle);
+	struct s390_idle_data *idle = this_cpu_ptr(&s390_idle);
 	unsigned long long idle_time;
 	unsigned long psw_mask;
 
Signature · 5 lines
2.1.1

-- 
Cheers,
Stephen Rothwell                    [email protected]