public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.0-test1-ac3 and PPC
@ 2003-07-24 13:42 Wojciech "Sas" Cieciwa
  2003-07-24 17:18 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Wojciech "Sas" Cieciwa @ 2003-07-24 13:42 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1174 bytes --]

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}

[-- Attachment #2: Type: TEXT/PLAIN, Size: 344 bytes --]

--- 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)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-24 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-24 13:42 2.6.0-test1-ac3 and PPC Wojciech "Sas" Cieciwa
2003-07-24 17:18 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox