summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorZide Chen <zide.chen@intel.com>2026-06-11 09:00:28 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-06-30 10:57:03 +0200
commitcbbc25209ce34f1baeec615553b93904a7a5d8cd (patch)
tree2339350ab5f32062c9abca929ad8b028b71e56c9 /tools/lib/python/kdoc
parent7d3a9ff98898b3521eb5d7a3daf703b383f7935a (diff)
perf/x86/intel/uncore: Let init_box() callback report failures
The init_box() callback currently returns void, so initialization failures are silently ignored and the box is still marked initialized. Change the callback to return int so platform code can report errors back to the common uncore layer. Update uncore_box_init() to set the initialized flag only when init_box() succeeds. Because box->refcnt guarantees that at most one CPU calls uncore_box_init() for a given box at a time, plain __set_bit() is safe for the initialized flag without atomic overhead. Convert all init_box() implementations to return 0 on success or a negative error code on failure. This is a prerequisite for propagating initialization errors to the caller so they can be handled properly. Signed-off-by: Zide Chen <zide.chen@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Ian Rogers <irogers@google.com> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://patch.msgid.link/20260611160033.66760-4-zide.chen@intel.com
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions