Commit 07813e2
perf/x86/intel/uncore: Generalize get_topology() for SKX PMUs
Factor out a generic code from skx_iio_get_topology() to skx_pmu_get_topology()
to avoid code duplication. This code will be used by get_topology() procedure
for SKX UPI PMUs in the further patch.
Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20221117122833.3103580-6-alexander.antonov@linux.intel.com1 parent efe0627 commit 07813e2
1 file changed
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3837 | 3837 | | |
3838 | 3838 | | |
3839 | 3839 | | |
3840 | | - | |
| 3840 | + | |
| 3841 | + | |
3841 | 3842 | | |
3842 | 3843 | | |
3843 | | - | |
3844 | | - | |
| 3844 | + | |
3845 | 3845 | | |
3846 | 3846 | | |
3847 | | - | |
| 3847 | + | |
3848 | 3848 | | |
3849 | 3849 | | |
3850 | 3850 | | |
3851 | 3851 | | |
3852 | 3852 | | |
3853 | 3853 | | |
3854 | 3854 | | |
3855 | | - | |
3856 | | - | |
3857 | | - | |
3858 | | - | |
3859 | | - | |
3860 | | - | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
3861 | 3858 | | |
3862 | 3859 | | |
3863 | 3860 | | |
3864 | 3861 | | |
3865 | 3862 | | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
3866 | 3884 | | |
3867 | 3885 | | |
3868 | 3886 | | |
| |||
0 commit comments