Commit 94d29f7c authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] Shorten the times IRQs are disabled in throttling.

During calculations no disabling is necessary.
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 0dc3c297
...@@ -69,12 +69,12 @@ acpi_processor_get_throttling ( ...@@ -69,12 +69,12 @@ acpi_processor_get_throttling (
pr->throttling.state = 0; pr->throttling.state = 0;
local_irq_disable();
duty_mask = pr->throttling.state_count - 1; duty_mask = pr->throttling.state_count - 1;
duty_mask <<= pr->throttling.duty_offset; duty_mask <<= pr->throttling.duty_offset;
local_irq_disable();
value = inl(pr->throttling.address); value = inl(pr->throttling.address);
/* /*
...@@ -123,8 +123,6 @@ int acpi_processor_set_throttling ( ...@@ -123,8 +123,6 @@ int acpi_processor_set_throttling (
if (state == pr->throttling.state) if (state == pr->throttling.state)
return_VALUE(0); return_VALUE(0);
local_irq_disable();
/* /*
* Calculate the duty_value and duty_mask. * Calculate the duty_value and duty_mask.
*/ */
...@@ -140,6 +138,8 @@ int acpi_processor_set_throttling ( ...@@ -140,6 +138,8 @@ int acpi_processor_set_throttling (
duty_mask = ~duty_mask; duty_mask = ~duty_mask;
} }
local_irq_disable();
/* /*
* Disable throttling by writing a 0 to bit 4. Note that we must * Disable throttling by writing a 0 to bit 4. Note that we must
* turn it off before you can change the duty_value. * turn it off before you can change the duty_value.
......
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