* [PATCH] Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set
@ 2011-08-30 9:48 psomas
0 siblings, 0 replies; only message in thread
From: psomas @ 2011-08-30 9:48 UTC (permalink / raw)
To: linux-rt-users; +Cc: peterz, Stratos Psomadakis
From: Stratos Psomadakis <psomas@gentoo.org>
When CONFIG_PREEMPT_RT_FULL is not set, a build error occurs due to
migrate_disable task_struct member not existing.
Trivial fix, enclose it inside an #ifdef
Signed-off-by: Stratos Psomadakis <psomas@gentoo.org>
---
kernel/sched_debug.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index dba9e40..e68cf7f 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -485,7 +485,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
P(se.load.weight);
P(policy);
P(prio);
+#ifdef CONFIG_PREEMPT_RT_FULL
P(migrate_disable);
+#endif
P(rt.nr_cpus_allowed);
#undef PN
#undef __PN
--
1.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-30 9:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 9:48 [PATCH] Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set psomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).