diff options
author | Milosz Wasilewski <milosz.wasilewski@hackbox.linaro.org> | 2014-10-02 10:16:33 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@hackbox.linaro.org> | 2014-10-02 10:16:33 +0100 |
commit | 24689e01d37605141ce768d94a94f0be3421049d (patch) | |
tree | b2ac61c7572a4bbb49aa5c871fe6f3fd68436db1 /cpu-hotplug/on-off-test.sh | |
parent | e14eb051ff73ab8692770762adf44045ba092398 (diff) |
Update to 83d460a640af052ee4a6b8ef5104022ffd6d6a3b from repo http://git.linaro.org/kernel/linux-linaro-stable.git branch linux-linaro-lsk-v3.14eff6a902ff6b8a42f768c4b78fc63b9b8d0a41d9a779989fd4ccf6a58237ab3932559d8e60e157b6a47897538c3e1f71c35691a1f73e73dd9149977ca0d6a47ed69978c84ba8859c3cdbbbd04e79eb2d9347e87f7cd66d6ca96ba7d0b4b1cacebea4d09683d460a640af052ee4a6b8ef5104022ffd6d6a3b7adf3d9a27e4838d0af9250c53ad5744b84886ce7368857a8eed5144e56e65713970764ef0f2f0b8667ea3959654ae48ef303df13f2635fd07766cb45b9be6d71758967d5f24c91903ef3a1b22252a365210951a4876a42856434546d2789838d3e35f3447bbd44e18034d3277a29459d1f0c45e8d1c8d3e3af2dae32ca1108e47a435eaeec276a1c8289a362dad587ec1dddf02a00d3b54156337a6dc79a752297e25caff999eeccf24b19e62388450763af15d250e8659c56d94320b877f659be45b8de130fa3121d7f14b70fed254222a24e124e8771e1437be4c0d590a1ecd1ad44b2dae2bcdc5a6cb24a7080489linux-linaro-stable-3.14
Diffstat (limited to 'cpu-hotplug/on-off-test.sh')
-rw-r--r-- | cpu-hotplug/on-off-test.sh | 52 |
1 files changed, 2 insertions, 50 deletions
diff --git a/cpu-hotplug/on-off-test.sh b/cpu-hotplug/on-off-test.sh index 98b1d65..bdde7cf 100644 --- a/cpu-hotplug/on-off-test.sh +++ b/cpu-hotplug/on-off-test.sh @@ -11,8 +11,6 @@ prerequisite() exit 0 fi - taskset -p 01 $$ - SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` if [ ! -d "$SYSFS" ]; then @@ -24,19 +22,6 @@ prerequisite() echo $msg cpu hotplug is not supported >&2 exit 0 fi - - echo "CPU online/offline summary:" - online_cpus=`cat $SYSFS/devices/system/cpu/online` - online_max=${online_cpus##*-} - echo -e "\t Cpus in online state: $online_cpus" - - offline_cpus=`cat $SYSFS/devices/system/cpu/offline` - if [[ "a$offline_cpus" = "a" ]]; then - offline_cpus=0 - else - offline_max=${offline_cpus##*-} - fi - echo -e "\t Cpus in offline state: $offline_cpus" } # @@ -128,25 +113,15 @@ offline_cpu_expect_fail() } error=-12 -allcpus=0 priority=0 -online_cpus=0 -online_max=0 -offline_cpus=0 -offline_max=0 -while getopts e:ahp: opt; do +while getopts e:hp: opt; do case $opt in e) error=$OPTARG ;; - a) - allcpus=1 - ;; h) - echo "Usage $0 [ -a ] [ -e errno ] [ -p notifier-priority ]" - echo -e "\t default offline one cpu" - echo -e "\t run with -a option to offline all cpus" + echo "Usage $0 [ -e errno ] [ -p notifier-priority ]" exit ;; p) @@ -163,29 +138,6 @@ fi prerequisite # -# Safe test (default) - offline and online one cpu -# -if [ $allcpus -eq 0 ]; then - echo "Limited scope test: one hotplug cpu" - echo -e "\t (leaves cpu in the original state):" - echo -e "\t online to offline to online: cpu $online_max" - offline_cpu_expect_success $online_max - online_cpu_expect_success $online_max - - if [[ $offline_cpus -gt 0 ]]; then - echo -e "\t offline to online to offline: cpu $offline_max" - online_cpu_expect_success $offline_max - offline_cpu_expect_success $offline_max - fi - exit 0 -else - echo "Full scope test: all hotplug cpus" - echo -e "\t online all offline cpus" - echo -e "\t offline all online cpus" - echo -e "\t online all offline cpus" -fi - -# # Online all hot-pluggable CPUs # for cpu in `hotplaggable_offline_cpus`; do |