Skip to contentSkip to conversation

Fix build on UP ARM core

PATCH New Remy Bohmer 1 participant 1 message Sep 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build on UP ARM core

It fixes this error:
In file included from kernel/sched.c:2041:0:
kernel/sched_debug.c: In function 'print_rt_rq':
kernel/sched_debug.c:238:83: error: 'struct rt_rq' has no member named 'rt_nr_migratory' kernel/sched_debug.c:238:171: error: 'struct rt_rq' has no member named 'rt_nr_migratory' make[2]: *** [kernel/sched.o] Error 1

---
 kernel/sched_debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/sched_debug.c +2 -0
index e68cf7f..528032b 100644
@@ -235,7 +235,9 @@ void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq)
 	P(rt_throttled);
 	PN(rt_time);
 	PN(rt_runtime);
+#ifdef CONFIG_SMP
 	P(rt_nr_migratory);
+#endif
 
 #undef PN
 #undef P
Signature · 1 line
1.7.4.1