Created
August 15, 2017 16:05
-
-
Save pfactum/423338a9f73ca01a3e6071afdd7db758 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From aecc68017100edfc6ef347329d709e61a2e9185a Mon Sep 17 00:00:00 2001 | |
From: Oleksandr Natalenko <oleksandr@natalenko.name> | |
Date: Tue, 15 Aug 2017 18:05:28 +0200 | |
Subject: [PATCH] muqss-4.12: avoid task_rq redefining if SMP=n | |
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name> | |
--- | |
kernel/sched/MuQSS.h | 3 +-- | |
1 file changed, 1 insertion(+), 2 deletions(-) | |
diff --git a/kernel/sched/MuQSS.h b/kernel/sched/MuQSS.h | |
index 3e27e699ff82..e01250ec658d 100644 | |
--- a/kernel/sched/MuQSS.h | |
+++ b/kernel/sched/MuQSS.h | |
@@ -265,9 +265,8 @@ extern struct rq *uprq; | |
DECLARE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); | |
#define this_rq() this_cpu_ptr(&runqueues) | |
#define raw_rq() raw_cpu_ptr(&runqueues) | |
-#endif /* CONFIG_SMP */ | |
- | |
#define task_rq(p) cpu_rq(task_cpu(p)) | |
+#endif /* CONFIG_SMP */ | |
static inline int task_current(struct rq *rq, struct task_struct *p) | |
{ | |
-- | |
2.14.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment