Commit 2db4edf
committed
perf/x86/rapl: Move the pmu allocation out of CPU hotplug
JIRA: https://issues.redhat.com/browse/RHEL-77935
upstream
========
commit 9b99d65
Author: Kan Liang <kan.liang@linux.intel.com>
Date: Thu Oct 10 07:26:03 2024 -0700
description
===========
There are extra codes in the CPU hotplug function to allocate rapl pmus.
The generic PMU hotplug support is hard to be applied.
As long as the rapl pmus can be allocated upfront for each die/socket,
the code doesn't need to be implemented in the CPU hotplug function.
Move the code to the init_rapl_pmus(), and allocate a PMU for each
possible die/socket.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Oliver Sang <oliver.sang@intel.com>
Link: https://lore.kernel.org/r/20241010142604.770192-1-kan.liang@linux.intel.com
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 3772451 commit 2db4edf
1 file changed
+30
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 605 | + | |
| 606 | + | |
618 | 607 | | |
619 | 608 | | |
620 | 609 | | |
| |||
707 | 696 | | |
708 | 697 | | |
709 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
710 | 725 | | |
711 | 726 | | |
712 | 727 | | |
| |||
730 | 745 | | |
731 | 746 | | |
732 | 747 | | |
733 | | - | |
| 748 | + | |
| 749 | + | |
734 | 750 | | |
735 | 751 | | |
736 | 752 | | |
| |||
0 commit comments