Commit 4318266
committed
PM: EM: Move CPU capacity check to em_adjust_new_capacity()
JIRA: https://issues.redhat.com/browse/RHEL-110833
commit 3e3ba65
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date: Tue May 6 22:39:35 2025 +0200
PM: EM: Move CPU capacity check to em_adjust_new_capacity()
Move the check of the CPU capacity currently stored in the energy model
against the arch_scale_cpu_capacity() value to em_adjust_new_capacity()
so it will be done regardless of where the latter is called from.
This will be useful when a new em_adjust_new_capacity() caller is added
subsequently.
While at it, move the pd local variable declaration in
em_check_capacity_update() into the loop in which it is used.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://patch.msgid.link/7810787.EvYhyI6sBW@rjwysocki.net
Signed-off-by: Steve Best <sbest@redhat.com>1 parent 3092672 commit 4318266
1 file changed
+17
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
| 731 | + | |
731 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
732 | 746 | | |
733 | 747 | | |
734 | 748 | | |
| |||
744 | 758 | | |
745 | 759 | | |
746 | 760 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | 761 | | |
751 | 762 | | |
752 | 763 | | |
| |||
757 | 768 | | |
758 | 769 | | |
759 | 770 | | |
760 | | - | |
| 771 | + | |
761 | 772 | | |
762 | 773 | | |
763 | 774 | | |
| |||
780 | 791 | | |
781 | 792 | | |
782 | 793 | | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
| 794 | + | |
801 | 795 | | |
802 | 796 | | |
803 | 797 | | |
| |||
0 commit comments