lkml.org 
[lkml]   [2003]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.6.0-test1-ac3 and PPC
Hi, 
I try to build 2.6.0-test1-ac3 on PPC

in .config I have:

CONFIG_SMP=y
CONFIG_IRQ_ALL_CPUS=y
CONFIG_NR_CPUS=32
# CONFIG_ALTIVEC is not set
CONFIG_TAU=y
# CONFIG_TAU_INT is not set
# CONFIG_TAU_AVERAGE is not set
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_PROC_INTF=y
CONFIG_CPU_FREQ_24_API=y
CONFIG_CPU_FREQ_PMAC=y

and I got error:
CC arch/ppc/platforms/pmac_cpufreq.o
arch/ppc/platforms/pmac_cpufreq.c: In function `do_set_cpu_speed':
arch/ppc/platforms/pmac_cpufreq.c:180: error: `CPUFREQ_ALL_CPUS' undeclared (first use in this function)
arch/ppc/platforms/pmac_cpufreq.c:180: error: (Each undeclared identifier is reported only once
arch/ppc/platforms/pmac_cpufreq.c:180: error: for each function it appears in.)
make[1]: *** [arch/ppc/platforms/pmac_cpufreq.o] Błąd 1
make: *** [arch/ppc/platforms] Błąd 2

I solve this with included patch.

Please check and applay.

Thanx.
Sas.
P.S.
In file include/asm-ppc/smp.h is missing line:
#include <inclide/threads.h>
--
{Wojciech 'Sas' Cieciwa} {Member of PLD Team }
{e-mail: cieciwa@alpha.zarz.agh.edu.pl, http://www2.zarz.agh.edu.pl/~cieciwa}
--- linux-2.6.0-test1/arch/ppc/platforms/pmac_cpufreq.c.org Thu Jul 24 11:39:13 2003
+++ linux-2.6.0-test1/arch/ppc/platforms/pmac_cpufreq.c Thu Jul 24 11:39:54 2003
@@ -36,6 +36,7 @@
#define PMAC_CPU_LOW_SPEED 1
#define PMAC_CPU_HIGH_SPEED 0

+#define CPUFREQ_ALL_CPUS ((NR_CPUS))
static inline void
wakeup_decrementer(void)
{
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.042 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site