Commit 620ccc99 authored by Lu Jialin's avatar Lu Jialin
Browse files

psi: support irq.pressure under cgroup v1

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BCV4



-------------------------------

Export "irq.pressure" to cgroup v1 "cpuacct" subsystem.

Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
parent f03a6db7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3808,6 +3808,16 @@ struct cftype cgroup_v1_psi_files[] = {
		.poll = cgroup_pressure_poll,
		.release = cgroup_pressure_release,
	},
#ifdef CONFIG_IRQ_TIME_ACCOUNTING
	{
		.name = "irq.pressure",
		.flags = CFTYPE_NO_PREFIX,
		.seq_show = cgroup_irq_pressure_show,
		.write = cgroup_irq_pressure_write,
		.poll = cgroup_pressure_poll,
		.release = cgroup_pressure_release,
	},
#endif
	{ } /* terminate */
};
#endif /* CONFIG_PSI */