From: Pavel M. <pa...@uc...> - 2004-02-28 15:48:10
|
Hi! I do not know why ACPI people did this... computing 1<<x using lookup table. Its not even funny. Please apply, Pavel --- tmp/linux/drivers/acpi/processor.c 2004-02-20 12:29:21.000000000 +0100 +++ linux/drivers/acpi/processor.c 2004-02-28 15:30:52.000000000 +0100 @@ -66,9 +66,6 @@ #define C2_OVERHEAD 4 /* 1us (3.579 ticks per us) */ #define C3_OVERHEAD 4 /* 1us (3.579 ticks per us) */ - -const u32 POWER_OF_2[] = {1,2,4,8,16,32,64}; - #define ACPI_PROCESSOR_LIMIT_USER 0 #define ACPI_PROCESSOR_LIMIT_THERMAL 1 @@ -1489,7 +1486,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/ -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] |