summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Galbraith <bitbucket@online.de>2013-08-30 07:57:25 +0200
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-12-17 22:47:49 -0500
commitffb3bfbf62ea469c933639cce452448777f45a26 (patch)
tree19ade77a81a604d634db2428be6e2f181ef3abfa
parent6380951a85bd422cb90c2f1fa0360cc8c7d53a3a (diff)
downloadlinux-rt-ffb3bfbf62ea469c933639cce452448777f45a26.tar.gz
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> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-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 6f61d5fb3afb..d2676b867e41 100644
--- a/drivers/misc/hwlat_detector.c
+++ b/drivers/misc/hwlat_detector.c
@@ -413,7 +413,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 */