]> Gentwo Git Trees - linux/.git/commit
drm/xe/gt_throttle: Tidy up perf reasons reading
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 29 Oct 2025 23:45:04 +0000 (16:45 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 31 Oct 2025 06:20:25 +0000 (23:20 -0700)
commitf90556a41fe5f4aa3d573451f7cb3e4471a3fd6d
tree80c6f20a13d6e7f0ebbaae2de7f7b2a09798632a
parent59ab71d3db4bea8f884a3de95a23b13f67c8bb8e
drm/xe/gt_throttle: Tidy up perf reasons reading

There's no need to be so verbose with two functions per bit:
read_reason_xxxxx() and reason_xxxxx_show(). Drop the former and just
use a new is_throttled_by() that receives the mask as parameter.

Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://patch.msgid.link/20251029-gt-throttle-cri-v3-2-d1f5abbb8114@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_throttle.c