Commit 3a95717
committed
cpufreq: intel_pstate: Rearrange the storing of new EPP values
Move the locking away from intel_pstate_set_energy_pref_index()
into its only caller and drop the (now redundant) return_pref label
from it.
Also move the "raw" EPP value check into the caller of that function,
so as to do it before acquiring the mutex, and reduce code duplication
related to the "raw" EPP values processing somewhat.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>1 parent 80e3036 commit 3a95717
1 file changed
Lines changed: 15 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
657 | 655 | | |
658 | 656 | | |
659 | | - | |
| 657 | + | |
660 | 658 | | |
661 | 659 | | |
662 | 660 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
674 | 664 | | |
675 | 665 | | |
676 | 666 | | |
| |||
680 | 670 | | |
681 | 671 | | |
682 | 672 | | |
683 | | - | |
684 | | - | |
685 | 673 | | |
686 | 674 | | |
687 | 675 | | |
| |||
708 | 696 | | |
709 | 697 | | |
710 | 698 | | |
| 699 | + | |
711 | 700 | | |
712 | | - | |
713 | 701 | | |
714 | 702 | | |
715 | 703 | | |
| |||
724 | 712 | | |
725 | 713 | | |
726 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
727 | 718 | | |
728 | 719 | | |
729 | 720 | | |
| 721 | + | |
| 722 | + | |
730 | 723 | | |
731 | | - | |
732 | | - | |
| 724 | + | |
| 725 | + | |
733 | 726 | | |
734 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
735 | 730 | | |
736 | 731 | | |
737 | 732 | | |
| |||
0 commit comments