Re: [ACPI-sppt] setting cpu frequency
Luca Capello <[email protected]> Tue, 16 Sep 2003 16:39:38 +0100
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Message-ID | <[email protected]> |
Hello, as nobody answered, I tried anyway...
on 14/09/2003 12.19, Luca Capello wrote:
> My question: I've a kernel version 2.4.21, applied acpi-20030619 and
> acpi-dsdt-initrd-v0.3-2.4.21 patches. So, which is the right cpufreq
> patch for my kernel? As from the changelog, I think it's the
> cpufreq-2.4.21-2, but I'm not sure...
If I patch the kernel w/ the 'cpufreq-2.4.21-1' and then I compile it
('make-kpkg clean' and 'make-kpkg kernel_image' as I'm on Debian), I get
this error:
=====
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=kmod -DEXPORT_SYMTAB
-c kmod.c
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=context
-DEXPORT_SYMTAB -c context.c
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=uid16 -c -o uid16.o
uid16.c
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB
-c ksyms.c
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=pm -DEXPORT_SYMTAB -c pm.c
gcc -D__KERNEL__
-I/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-nostdinc -iwithprefix include -DKBUILD_BASENAME=cpufreq
-DEXPORT_SYMTAB -c cpufreq.c
In file included from
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/linux/irq.h:69,
from
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/asm/hardirq.h:6,
from
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/linux/interrupt.h:46,
from cpufreq.c:21:
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/asm/hw_irq.h:
In function `x86_do_profile':
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/asm/hw_irq.h:201:
error: `current' undeclared (first use in this function)
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/asm/hw_irq.h:201:
error: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/include/asm/hw_irq.h:201:
error: for each function it appears in.)
make[3]: *** [cpufreq.o] Error 1
make[3]: Leaving directory
`/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq'make: ***
[stamp-build] Error 2
gismo:/usr/src/linux-2.4.21-acpi.initrd.alsadevfs.cpufreq#
=====
So, possible solution?
Thx, bye,
Gismo / Luca
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf