]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe: Make read_perf_limit_reasons globally accessible
authorJohn Harrison <John.C.Harrison@Intel.com>
Sat, 18 May 2024 04:36:58 +0000 (21:36 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 23 May 2024 17:55:28 +0000 (10:55 -0700)
commitfcc8f80517ff71fab24f63dcb4bdb43e63b52fbd
tree684f98f09d815a3448f25b47a781cf7521a717fa
parent83ee002df0ccdd7429d6355f65af3845af016ffe
drm/xe: Make read_perf_limit_reasons globally accessible

Other driver code beyond the sysfs interface wants to know about
throttling. So make the query function globally accessible.

v2: Revert include order change (review feedback from Lucas)
v3: Remove '_sysfs' from throttle file names and keep limit query in
the same file rather than moving elsewhere (review feedback from
Rodrigo).
v4: Correct #include while renaming header file (review feedback
from Lucas).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240518043700.3264362-2-John.C.Harrison@Intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_freq.c
drivers/gpu/drm/xe/xe_gt_throttle.c [moved from drivers/gpu/drm/xe/xe_gt_throttle_sysfs.c with 85% similarity]
drivers/gpu/drm/xe/xe_gt_throttle.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_throttle_sysfs.h [deleted file]