Commit 6f50ab9a authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] delete POWER_OF_TWO array (Pavel Machek)

parent e1981aa9
This diff is collapsed.
...@@ -67,8 +67,6 @@ ...@@ -67,8 +67,6 @@
#define C3_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_USER 0
#define ACPI_PROCESSOR_LIMIT_THERMAL 1 #define ACPI_PROCESSOR_LIMIT_THERMAL 1
...@@ -1489,7 +1487,7 @@ acpi_processor_get_throttling_info ( ...@@ -1489,7 +1487,7 @@ acpi_processor_get_throttling_info (
return_VALUE(0); 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/ * Compute state values. Note that throttling displays a linear power/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment