Re: [PATCH] ACPI:avoid printing the error message that processor device is not present

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

 



On Sunday 07 October 2007 23:35, Zhao Yakui wrote:
> Subject: ACPI: avoid printing the info that processor device is not present
> From: Zhao Yakui  <yakui.zhao@xxxxxxxxx>
> 
> Four processors are defined in the DSDT table, which means that quad-core cpu
> is supported. But dual-core cpu is installed on the system. In the
> initialization OS will check whether the defined processor exists. If it 
> doesn't exist, it will print the info that processor device is not present.
> The above error message has no effect on the system but it will mislead us.
> So it is unnecessary to print the error message when disabling acpi debug.

SuSE ships with ACPI_DEBUG enabled by default.
Can we get smarter about this -- say by checking against
the processors that we expect to be present?

thanks,
-Len

> http://bugzilla.kernel.org/show_bug.cgi?id=8630
> 
> Signed-off-by: Zhao Yakui  <yakui.zhao@xxxxxxxxx>
> ---
>  drivers/acpi/processor_core.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6.23-rc7/drivers/acpi/processor_core.c
> ===================================================================
> --- linux-2.6.23-rc7.orig/drivers/acpi/processor_core.c
> +++ linux-2.6.23-rc7/drivers/acpi/processor_core.c
> @@ -813,7 +813,9 @@ static int is_processor_present(acpi_han
>  
>  	status = acpi_evaluate_integer(handle, "_STA", NULL, &sta);
>  	if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_PRESENT)) {
> -		ACPI_EXCEPTION((AE_INFO, status, "Processor Device is not present"));
> +		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
> +			"%s :Processor Device is not present",
> +			acpi_format_exception(status)));
>  		return 0;
>  	}
>  	return 1;
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux