2.6.21-rt17 arm compile error
From: Manfred Gruber <hidden>
Date: 2007-06-19 15:02:05
hi ! i get foillowing compile error on arm: In file included from kernel/sched.c:752: kernel/sched_debug.c: In function 'print_cpu': kernel/sched_debug.c:107: error: 'cpu_khz' undeclared (first use in this function) kernel/sched_debug.c:107: error: (Each undeclared identifier is reported only once kernel/sched_debug.c:107: error: for each function it appears in.) make[1]: *** [kernel/sched.o] Fehler 1 someone any idea ? i don't think this fix is correct, but it helps to compile: Index: linux-2.6/kernel/sched_debug.c ===================================================================
--- linux-2.6.orig/kernel/sched_debug.c
+++ linux-2.6/kernel/sched_debug.c@@ -104,7 +104,11 @@ static void print_rq_runtime_sum(struct static void print_cpu(struct seq_file *m, int cpu, u64 now) { struct rq *rq = &per_cpu(runqueues, cpu); +#ifdef CONFIG_X86 unsigned int freq = cpu_khz ? : 1; +#else + unsigned int freq = 1; +#endif SEQ_printf(m, "\ncpu#%d, %u.%03u MHz\n", cpu, freq / 1000, (freq % 1000));
regards manfred