diff options
| author | 2026-06-02 07:49:07 -0700 | |
|---|---|---|
| committer | 2026-06-04 11:38:37 +0200 | |
| commit | 2aa7dacf8a3d928303df9c770c1bd7f50d1f8f2a (patch) | |
| tree | 019116bb3aaa57c351983201e8e595ea219e26fc /scripts/Makefile.thinlto | |
| parent | perf/x86/intel/uncore: Move die_to_cpu() to uncore.c (diff) | |
perf/x86/intel/uncore: Fix uncore_die_to_cpu() for offline dies
If the die is offline when uncore_die_to_cpu() is called, it silently
returns 0, which is misleading. Return -1 in this case to indicate
that all CPUs on the die are offline and the caller can take care of
it accordingly.
Opportunistically, replace -EPERM with -ENODEV, as -ENODEV is
the appropriate error when no CPUs are online across all dies.
Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://patch.msgid.link/20260602144908.263680-7-zide.chen@intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
