Commit 12ebba4
committed
cpufreq: intel_pstate: Simplify spinlock locking
Because intel_pstate_enable/disable_hwp_interrupt() are only called from
thread context, they need not save the IRQ flags when using a spinlock
as interrupts are guaranteed to be enabled when they run, so make them
use spin_lock/unlock_irq().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent f186b2d commit 12ebba4
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
1686 | | - | |
1687 | 1685 | | |
1688 | 1686 | | |
1689 | 1687 | | |
1690 | 1688 | | |
1691 | 1689 | | |
1692 | 1690 | | |
1693 | | - | |
| 1691 | + | |
1694 | 1692 | | |
1695 | 1693 | | |
1696 | | - | |
| 1694 | + | |
1697 | 1695 | | |
1698 | 1696 | | |
1699 | 1697 | | |
1700 | 1698 | | |
1701 | 1699 | | |
1702 | 1700 | | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
| 1701 | + | |
1706 | 1702 | | |
1707 | 1703 | | |
1708 | | - | |
| 1704 | + | |
1709 | 1705 | | |
1710 | 1706 | | |
1711 | 1707 | | |
| |||
0 commit comments