]> git.ipfire.org Git - thirdparty/systemd.git/commit
psi: update is_pressure_supported to read file
authorDan Streetman <ddstreet@canonical.com>
Wed, 19 May 2021 18:22:28 +0000 (14:22 -0400)
committerDan Streetman <ddstreet@canonical.com>
Thu, 20 May 2021 19:40:21 +0000 (15:40 -0400)
commit0de2fd18705caa49fc1179e241cd2fbb22bd42e3
tree227c5acc9e9c1227693a7ffba771bdd0131d92f9
parent264f0afe0d200fcc64647eed417f0f2b293224a7
psi: update is_pressure_supported to read file

The kernel still provides the /proc and cgroup pressure files even
if its psi support is disabled, so we need to actually read the files
to verify they don't return -EOPNOTSUPP
src/shared/psi-util.c