mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/xe: Prevent runtime PM wake while reading rp0 frequency
The rp0 frequency is a fused value that is read once during probe and then cached, so there’s no need to trigger a runtime wake when accessing rp0. Signed-off-by: Badal Nilawar <badal.nilawar@intel.com> Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Reviewed-by: Karthik Poosa <karthik.poosa@intel.com> Link: https://lore.kernel.org/r/20251015094611.1468939-1-badal.nilawar@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
409b949909
commit
95af815574
|
|
@ -99,13 +99,8 @@ static ssize_t rp0_freq_show(struct kobject *kobj,
|
|||
{
|
||||
struct device *dev = kobj_to_dev(kobj);
|
||||
struct xe_guc_pc *pc = dev_to_pc(dev);
|
||||
u32 freq;
|
||||
|
||||
xe_pm_runtime_get(dev_to_xe(dev));
|
||||
freq = xe_guc_pc_get_rp0_freq(pc);
|
||||
xe_pm_runtime_put(dev_to_xe(dev));
|
||||
|
||||
return sysfs_emit(buf, "%d\n", freq);
|
||||
return sysfs_emit(buf, "%d\n", xe_guc_pc_get_rp0_freq(pc));
|
||||
}
|
||||
static struct kobj_attribute attr_rp0_freq = __ATTR_RO(rp0_freq);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user