summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2026-06-23 11:01:27 +0200
committerXu Yilun <yilun.xu@linux.intel.com>2026-07-07 11:13:23 +0800
commit08303f16480e24705dc4ffc7f2d89c2afbd33a58 (patch)
tree8debdd3b1446bfb149ea03901c788b3c5941c9f9 /tools/perf/scripts/python/bin/stackcollapse-record
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
fpga: xilinx-pr-decoupler: Use devm_clk_get_prepared()
The driver keeps the "aclk" clock prepared but disabled in its idle state, toggling only the atomic clk_enable()/clk_disable() around register accesses in the bridge enable_set/enable_show callbacks. At probe time this was open-coded as clk_prepare_enable() immediately followed by clk_disable(), leaving the clock prepared, with a matching clk_unprepare() in the error path and in remove(). devm_clk_get_prepared() expresses exactly this: it gets and prepares the clock and unprepares it automatically on driver detach. Use it to drop the manual prepare/disable dance, the error-path unprepare, and the now-empty clock teardown in remove(). Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Reviewed-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/8ca8ee5ba720b608a41f842d2b743302e5500ad0.1782205286.git.michal.simek@amd.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions