From df6a582876d24938870198ee393a2c7eebd75d7b Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 24 Apr 2014 11:31:36 +0530 Subject: is-cpu-isolated.sh: rearrange code Change-Id: I939381ec2240a9f0c0ba5075164f0881c4bdf252 Signed-off-by: Viresh Kumar --- common/scripts/is-cpu-isolated.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 1a526e0..3df4ec1 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -65,6 +65,9 @@ isolate_cpu1() { fi + # Move bdi writeback workqueues to CPU0 + echo 1 > /sys/bus/workqueue/devices/writeback/cpumask + # Delay the annoying vmstat timer far away (in seconds) sysctl vm.stat_interval=1000 @@ -77,9 +80,6 @@ isolate_cpu1() { # Shutdown nmi watchdog as it uses perf events sysctl -w kernel.watchdog=0 - # Move bdi writeback workqueues to CPU0 - echo 1 > /sys/bus/workqueue/devices/writeback/cpumask - # make sure that the /dev/cpuset dir exits # and mount the cpuset filesystem if needed [ -d /dev/cpuset ] || mkdir /dev/cpuset -- cgit v1.2.3