summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZide Chen <zide.chen@intel.com>2026-06-02 07:49:07 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-06-04 11:38:37 +0200
commit2aa7dacf8a3d928303df9c770c1bd7f50d1f8f2a (patch)
tree019116bb3aaa57c351983201e8e595ea219e26fc /scripts
parentce044cfb7a365742b2e9229a4b70cf2a663d7270 (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')
0 files changed, 0 insertions, 0 deletions