aboutsummaryrefslogtreecommitdiff
path: root/rcutorture/configs/v3.3/ver_functions.sh
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2014-09-18 11:25:00 -0700
committerArthur She <arthur.she@linaro.org>2014-09-18 11:25:00 -0700
commit10d00136a81eacb6068ad6f153e6f6983b1355c9 (patch)
treeb2ac61c7572a4bbb49aa5c871fe6f3fd68436db1 /rcutorture/configs/v3.3/ver_functions.sh
parent8d5e98a61f52513749e459c98bcafd060d88b79c (diff)
Update to 0111d0f13469831266d716e3b50d580a3e25cff9 from repo http://git.linaro.org/kernel/linux-linaro-stable.git branch linux-linaro-lsk-v3.140111d0f13469831266d716e3b50d580a3e25cff9linux-linaro-stable-3.14
Diffstat (limited to 'rcutorture/configs/v3.3/ver_functions.sh')
-rw-r--r--rcutorture/configs/v3.3/ver_functions.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/rcutorture/configs/v3.3/ver_functions.sh b/rcutorture/configs/v3.3/ver_functions.sh
new file mode 100644
index 0000000..c37432f
--- /dev/null
+++ b/rcutorture/configs/v3.3/ver_functions.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+#
+# Kernel-version-dependent shell functions for the rest of the scripts.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, you can access it online at
+# http://www.gnu.org/licenses/gpl-2.0.html.
+#
+# Copyright (C) IBM Corporation, 2013
+#
+# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
+
+# rcutorture_param_n_barrier_cbs bootparam-string
+#
+# Adds n_barrier_cbs rcutorture module parameter to kernels having it.
+rcutorture_param_n_barrier_cbs () {
+ echo $1
+}
+
+# rcutorture_param_onoff bootparam-string config-file
+#
+# Adds onoff rcutorture module parameters to kernels having it.
+rcutorture_param_onoff () {
+ if ! bootparam_hotplug_cpu "$1" && configfrag_hotplug_cpu "$2"
+ then
+ echo CPU-hotplug kernel, adding rcutorture onoff.
+ echo $1 rcutorture.onoff_interval=3 rcutorture.onoff_holdoff=30
+ else
+ echo $1
+ fi
+}