2.6.21-rt17 arm compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux