Commit 98ff639
powercap: intel_rapl: Support per Interface primitive information
RAPL primitive information is Interface specific.
Although current MSR and MMIO Interface share the same RAPL primitives,
new Interface like TPMI has its own RAPL primitive information.
Save the primitive information in the Interface private structure.
Plus, using variant name "rp" for struct rapl_primitive_info is
confusing because "rp" is also used for struct rapl_package.
Use "rpi" as the variant name for struct rapl_primitive_info, and rename
the previous rpi[] array to avoid conflict.
No functional change.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent e8e28c2 commit 98ff639
2 files changed
Lines changed: 35 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
713 | 723 | | |
714 | 724 | | |
715 | 725 | | |
| 726 | + | |
716 | 727 | | |
717 | 728 | | |
718 | 729 | | |
| |||
763 | 774 | | |
764 | 775 | | |
765 | 776 | | |
766 | | - | |
| 777 | + | |
767 | 778 | | |
768 | 779 | | |
769 | 780 | | |
770 | | - | |
| 781 | + | |
771 | 782 | | |
772 | 783 | | |
773 | | - | |
| 784 | + | |
774 | 785 | | |
775 | 786 | | |
776 | 787 | | |
777 | 788 | | |
778 | 789 | | |
779 | 790 | | |
780 | 791 | | |
781 | | - | |
782 | | - | |
| 792 | + | |
| 793 | + | |
783 | 794 | | |
784 | 795 | | |
785 | | - | |
| 796 | + | |
786 | 797 | | |
787 | 798 | | |
788 | 799 | | |
789 | 800 | | |
790 | | - | |
| 801 | + | |
791 | 802 | | |
792 | 803 | | |
793 | 804 | | |
794 | 805 | | |
795 | 806 | | |
796 | 807 | | |
797 | | - | |
| 808 | + | |
798 | 809 | | |
799 | 810 | | |
800 | | - | |
| 811 | + | |
801 | 812 | | |
802 | 813 | | |
803 | 814 | | |
| |||
810 | 821 | | |
811 | 822 | | |
812 | 823 | | |
813 | | - | |
| 824 | + | |
814 | 825 | | |
815 | 826 | | |
816 | 827 | | |
817 | 828 | | |
818 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
819 | 833 | | |
820 | | - | |
821 | | - | |
822 | | - | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
823 | 837 | | |
824 | 838 | | |
825 | 839 | | |
826 | | - | |
827 | | - | |
| 840 | + | |
| 841 | + | |
828 | 842 | | |
829 | 843 | | |
830 | 844 | | |
| |||
1176 | 1190 | | |
1177 | 1191 | | |
1178 | 1192 | | |
| 1193 | + | |
| 1194 | + | |
1179 | 1195 | | |
1180 | | - | |
| 1196 | + | |
1181 | 1197 | | |
1182 | 1198 | | |
1183 | 1199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
0 commit comments