patch-2.4.26 linux-2.4.26/drivers/acpi/processor.c

Next file: linux-2.4.26/drivers/acpi/resources/rsaddr.c
Previous file: linux-2.4.26/drivers/acpi/pci_link.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/acpi/processor.c linux-2.4.26/drivers/acpi/processor.c
@@ -69,8 +69,6 @@
 #define ACPI_PROCESSOR_MAX_THROTTLE	250	/* 25% */
 #define ACPI_PROCESSOR_MAX_DUTY_WIDTH	4
 
-const u32 POWER_OF_2[] = {1,2,4,8,16,32,64};
-
 #define ACPI_PROCESSOR_LIMIT_USER	0
 #define ACPI_PROCESSOR_LIMIT_THERMAL	1
 
@@ -1377,7 +1375,7 @@
 		return_VALUE(0);
 	}
 
-	pr->throttling.state_count = POWER_OF_2[acpi_fadt.duty_width];
+	pr->throttling.state_count = 1 << acpi_fadt.duty_width;
 
 	/*
 	 * Compute state values. Note that throttling displays a linear power/

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)