diff options
author | Mike Galbraith <bitbucket@online.de> | 2013-08-30 05:57:25 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:18:47 (GMT) |
commit | 017907f4541930de79139fbcbcd2c4b0bbea4e10 (patch) | |
tree | 162cb200b0bb1c8526013c353f6b2b70ff90ce1e /drivers/misc | |
parent | 938b1fa9865f784988b6f92554f41e6b6f8d48f4 (diff) | |
download | linux-fsl-qoriq-017907f4541930de79139fbcbcd2c4b0bbea4e10.tar.xz |
hwlat-detector: Don't ignore threshold module parameter
If the user specified a threshold at module load time, use it.
Cc: stable-rt@vger.kernel.org
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Mike Galbraith <bitbucket@online.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/hwlat_detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/hwlat_detector.c b/drivers/misc/hwlat_detector.c index 6e88113..2429c43 100644 --- a/drivers/misc/hwlat_detector.c +++ b/drivers/misc/hwlat_detector.c @@ -414,7 +414,7 @@ static int init_stats(void) goto out; __reset_stats(); - data.threshold = DEFAULT_LAT_THRESHOLD; /* threshold us */ + data.threshold = threshold ?: DEFAULT_LAT_THRESHOLD; /* threshold us */ data.sample_window = DEFAULT_SAMPLE_WINDOW; /* window us */ data.sample_width = DEFAULT_SAMPLE_WIDTH; /* width us */ |