aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorZhi Wang <zhiw@nvidia.com>2025-01-24 10:29:55 -0800
committerDanilo Krummrich <dakr@kernel.org>2025-01-25 00:55:10 +0100
commitc965e3598b4ee7863d64dd13a54258753f7b447f (patch)
tree3689450c7f53d7857be7d4ebe8e5221e3f7c5619 /tools/perf/scripts/python/task-analyzer.py
parentdrm/nouveau: rename the variable "cmd" to "msg" in r535_gsp_cmdq_{get, push}() (diff)
downloadlinux-c965e3598b4ee7863d64dd13a54258753f7b447f.tar.gz
linux-c965e3598b4ee7863d64dd13a54258753f7b447f.zip
drm/nouveau: factor out r535_gsp_msgq_peek()
To receive a GSP message queue element from the GSP status queue, the driver needs to make sure there are available elements in the queue. The previous r535_gsp_msgq_wait() consists of three functions, which is a little too complicated for a single function: - wait for an available element. - peek the message element header in the queue. - recevice the element from the queue. Factor out r535_gsp_msgq_peek() and divide the functions in r535_gsp_msgq_wait() into three functions. No functional change is intended. Cc: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Zhi Wang <zhiw@nvidia.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250124182958.2040494-13-zhiw@nvidia.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions