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
- Lines: 18
- Date:
2004-04-14 06:05:29.000000000 -0700
- Orig file:
linux-2.4.25/drivers/acpi/processor.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
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)