summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2026-08-17 14:09:36 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-09-10 07:08:33 +0200
commit85e5f54bb3b6e22d8a4a542b098a2600fdb68ced (patch)
tree16434e9e8696510f267134194a66c730b4ab897b /tools/perf/scripts/python
parentea958a19076769ed2bc82efccc0168819e437d57 (diff)
downloadlinux-next-85e5f54bb3b6e22d8a4a542b098a2600fdb68ced.tar.gz
linux-next-85e5f54bb3b6e22d8a4a542b098a2600fdb68ced.zip
thunderbolt: Clean up ring interrupt register indexing
nhi_mask_interrupt() and nhi_clear_interrupt() take "ring" as parameter but in fact it is not an actual ring but a byte offset to the interrupt register. Make this less confusing and name the paramers what it really is and calculate the offset where it is actually needed. In addition ring_interrupt_active() has two variables called "index" with different meanings, and the second one shadows the first one open-coding ring_interrupt_index() as well. Drop that and rename the remaining what they actually hold. While there, make the mask variable u32 and use BIT() to avoid signed shifting. No functional changes intended. Assisted-by: LLM Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions