Skip to contentSkip to conversation

2.6.21-rt17 arm compile error

PATCH Manfred Gruber 1 participant 1 message Jun 19, 2007

lore
Share & tools
lore
#0 lore raw

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:

kernel/sched_debug.c +4 -0
Index: 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