diff options
| author | Vinay Belgaumkar <vinay.belgaumkar@intel.com> | 2025-01-10 20:33:09 +0300 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-01-14 18:02:49 +0300 |
| commit | d160dc6f53914d729be7fcb7afbd0e9e6a3725b2 (patch) | |
| tree | b3acd458fe46202a3d34fe7e30591d0bfaef094b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | c26f22dac3449d8a687237cdfc59a6445eb8f75a (diff) | |
| download | linux-d160dc6f53914d729be7fcb7afbd0e9e6a3725b2.tar.xz | |
drm/xe: Add locks in gtidle code
The update of the residency values needs to be protected by a lock to
avoid multiple entrypoints, for example when multiple userspace clients
read the sysfs file. Other in-kernel clients are going to be added to
sample these values, making the problem worse. Protect those updates
with a raw_spinlock so it can be called by future integration with perf
pmu.
Suggested-by: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250110173308.2412232-2-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
