[GIT PULL] perf events fixes

From: Ingo Molnar

Date: Sun Nov 23 2025 - 02:45:51 EST


Linus,

Please pull the latest perf/urgent Git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2025-11-23

# HEAD: f1f96511b1c4c33e53f05909dd267878e0643a9a perf: Fix 0 count issue of cpu-clock

Fix perf CPU-clock counters, and address a static checker warning.

Thanks,

Ingo

------------------>
Dapeng Mi (1):
perf: Fix 0 count issue of cpu-clock

Jiri Slaby (SUSE) (1):
perf/x86/intel/uncore: Remove superfluous check


arch/x86/events/intel/uncore.c | 2 --
kernel/events/core.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c
index d6c945cc5d07..e228e564b15e 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -1325,8 +1325,6 @@ static void uncore_pci_sub_driver_init(void)
continue;

pmu = &type->pmus[UNCORE_PCI_DEV_IDX(ids->driver_data)];
- if (!pmu)
- continue;

if (uncore_pci_get_dev_die_info(pci_sub_dev, &die))
continue;
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 1fd347da9026..2c35acc2722b 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -11901,7 +11901,7 @@ static int cpu_clock_event_add(struct perf_event *event, int flags)

static void cpu_clock_event_del(struct perf_event *event, int flags)
{
- cpu_clock_event_stop(event, flags);
+ cpu_clock_event_stop(event, PERF_EF_UPDATE);
}

static void cpu_clock_event_read(struct perf_event *event)