diff options
author | Mike Galbraith <bitbucket@online.de> | 2013-08-30 05:57:25 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:37:53 (GMT) |
commit | a8c97f75767fc1426d5f65c8c494d550d7068f78 (patch) | |
tree | 97878bac7afeb370292b2c3c4b03f475d6639d16 /drivers | |
parent | 9f382bcfe88c2ee285a7df8fa8b0aeab843e226e (diff) | |
download | linux-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')
-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 */ |