summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMike Galbraith <bitbucket@online.de>2013-08-30 05:57:25 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:37:53 (GMT)
commita8c97f75767fc1426d5f65c8c494d550d7068f78 (patch)
tree97878bac7afeb370292b2c3c4b03f475d6639d16 /drivers/misc
parent9f382bcfe88c2ee285a7df8fa8b0aeab843e226e (diff)
downloadlinux-fsl-qoriq-a8c97f75767fc1426d5f65c8c494d550d7068f78.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.c2
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 */