blob: 78ea5e53d0a3e57c60a06dacd786e078c7974a76 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "set up cgroups according to the platform (kukui) needs"
author ""
start on stopped cgroups
# Non-urgent Chrome threads should go to little cores.
echo 0-3 > /sys/fs/cgroup/cpuset/chrome/non-urgent/cpus
# We use a schedtune cgroup to boost the deadline sensitive tasks.
# default boost parameters needed for consistent 60fps compositing
echo 20 > "${schedtune_dir}/urgent/schedtune.boost"
echo 1 > "${schedtune_dir}/urgent/schedtune.prefer_idle"
# enable touch boosting
echo 75 > /sys/module/cpu_boost/parameters/input_boost_freq_percent
end script