power: supply: bq24190_charger: Add disable-reset device-property
[linux/fpc-iii.git] / tools / testing / selftests / rcutorture / configs / lock / ver_functions.sh
blob252aae618984ff622685bda02b9ac11c787d1533
1 #!/bin/bash
3 # Kernel-version-dependent shell functions for the rest of the scripts.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, you can access it online at
17 # http://www.gnu.org/licenses/gpl-2.0.html.
19 # Copyright (C) IBM Corporation, 2014
21 # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
23 # locktorture_param_onoff bootparam-string config-file
25 # Adds onoff locktorture module parameters to kernels having it.
26 locktorture_param_onoff () {
27 if ! bootparam_hotplug_cpu "$1" && configfrag_hotplug_cpu "$2"
28 then
29 echo CPU-hotplug kernel, adding locktorture onoff. 1>&2
30 echo locktorture.onoff_interval=3 locktorture.onoff_holdoff=30
34 # per_version_boot_params bootparam-string config-file seconds
36 # Adds per-version torture-module parameters to kernels supporting them.
37 per_version_boot_params () {
38 echo $1 `locktorture_param_onoff "$1" "$2"` \
39 locktorture.stat_interval=15 \
40 locktorture.shutdown_secs=$3 \
41 locktorture.torture_runnable=1 \
42 locktorture.verbose=1