ACPI: cpufreq, processor: fix compile error in drivers/acpi/processor_perflib.c
PATCH 1/1 ACPI: cpufreq, processor: fix compile error in drivers/acpi/processor_perflib.c
When trying to build 2.6.28-rc1 on ia64, make aborts with:
CC drivers/acpi/processor_perflib.o
drivers/acpi/processor_perflib.c:41:28: error: asm/cpufeature.h: No such file or directory drivers/acpi/processor_perflib.c: In function ‘acpi_processor_get_performance_info’:
drivers/acpi/processor_perflib.c:364: error: implicit declaration of function ‘boot_cpu_has’ drivers/acpi/processor_perflib.c:364: error: ‘X86_FEATURE_EST’ undeclared (first use in this function) drivers/acpi/processor_perflib.c:364: error: (Each undeclared identifier is reported only once drivers/acpi/processor_perflib.c:364: error: for each function it appears in.) make[2]: *** [drivers/acpi/processor_perflib.o] Error 1
make[1]: *** [drivers/acpi] Error 2
make: *** [drivers] Error 2
this patch fix it.
--- drivers/acpi/processor_perflib.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/acpi/processor_perflib.c +5 -0
@@ -38,7 +38,10 @@#include <asm/uaccess.h> #endif + +#ifdef CONFIG_X86 #include <asm/cpufeature.h> +#endif #include <acpi/acpi_bus.h> #include <acpi/processor.h>
@@ -360,11 +363,13 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr)* the BIOS is older than the CPU and does not know its frequencies */ update_bios: +#ifdef CONFIG_X86 if (ACPI_SUCCESS (acpi_get_handle (pr->handle,"_PPC" , &handle))){if (boot_cpu_has (X86_FEATURE_EST )) printk(KERN_WARNING FW_BUG "BIOS needs update for CPU ""frequency support\n" ); } +#endif return result; }
Signature · 8 lines
1.5.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 16 lines · On Friday 24 October 2008 11:22:04 Miao Xie wrote:
When trying to build 2.6.28-rc1 on ia64, make aborts with:
CC
drivers/acpi/processor_perflib.o
drivers/acpi/processor_perflib.c:41:28: error:asm/cpufeature.h: No such
file or directorydrivers/acpi/processor_perflib.c: In function ‘acpi_processor_get_performance_info’:drivers/acpi/processor_perflib.c:364: error: implicit declaration of function ‘boot_cpu_has’drivers/acpi/processor_perflib.c:364: error:
‘X86_FEATURE_EST’ undeclared (first use in this function)drivers/acpi/processor_perflib.c:364: error: (Each undeclared identifier is reported only oncedrivers/acpi/processor_perflib.c:364: error: for each function it appears in.) make[2]: *** [drivers/acpi/processor_perflib.o] Error 1
make[1]: *** [drivers/acpi] Error 2
make: *** [drivers] Error 2
Quoted 1 line
this patch fix it.
Thanks.
Thomas
Quoted 27 lines
Signed-off-by Miao Xie <[email protected]>Cc Thomas Renninger <[email protected]>--- drivers/acpi/processor_perflib.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)(quoted diff) +0
-0
b/drivers/acpi/processor_perflib.cindex dc98f7a..dbcf260 100644drivers/acpi/processor_perflib.c +3
-0@@ -38,7 +38,10 @@#include <asm/uaccess.h> #endif + +#ifdef CONFIG_X86 #include <asm/cpufeature.h> +#endif #include <acpi/acpi_bus.h> #include <acpi/processor.h> @@ -360,11 +363,13 @@ static int acpi_processor_get_performance_info(struct
acpi_processor*pr) * the BIOS is older than the CPU and does not know its frequencies */
update_bios:
drivers/acpi/processor_perflib.c static int acpi_processor_get_performance_info(struct acpi_processor *pr) · line 374
Quoted 9 lines
drivers/acpi/processor_perflib.c +2
-0+#ifdef CONFIG_X86 if (ACPI_SUCCESS (acpi_get_handle (pr->handle,"_PPC" , &handle))){if (boot_cpu_has (X86_FEATURE_EST )) printk(KERN_WARNING FW_BUG "BIOS needs update for CPU ""frequency support\n" ); } +#endif return result; }
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
applied.
thanks,
-len
Quoted 61 lines · Miao Xie
When trying to build 2.6.28-rc1 on ia64, make aborts with:
CC
drivers/acpi/processor_perflib.o
drivers/acpi/processor_perflib.c:41:28: error:asm/cpufeature.h: No such file or directorydrivers/acpi/processor_perflib.c: In function ‘acpi_processor_get_performance_info’:
drivers/acpi/processor_perflib.c:364: error: implicit declaration of function ‘boot_cpu_has’drivers/acpi/processor_perflib.c:364: error: ‘X86_FEATURE_EST’ undeclared (first use in this function)drivers/acpi/processor_perflib.c:364: error: (Each undeclared identifier is reported only oncedrivers/acpi/processor_perflib.c:364: error: for each function it appears in.) make[2]: *** [drivers/acpi/processor_perflib.o] Error 1
make[1]: *** [drivers/acpi] Error 2
make: *** [drivers] Error 2this patch fix it.
Signed-off-by Miao Xie <[email protected]>Cc Thomas Renninger <[email protected]>--- drivers/acpi/processor_perflib.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)drivers/acpi/processor_perflib.c +5
-0@@ -38,7 +38,10 @@#include <asm/uaccess.h> #endif + +#ifdef CONFIG_X86 #include <asm/cpufeature.h> +#endif #include <acpi/acpi_bus.h> #include <acpi/processor.h> @@ -360,11 +363,13 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr)* the BIOS is older than the CPU and does not know its frequencies */ update_bios: +#ifdef CONFIG_X86 if (ACPI_SUCCESS (acpi_get_handle (pr->handle,"_PPC" , &handle))){if (boot_cpu_has (X86_FEATURE_EST )) printk(KERN_WARNING FW_BUG "BIOS needs update for CPU ""frequency support\n" ); } +#endif return result; }Signature · 8 lines
1.5.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html