If the user specified a threshold at module load time, use it. Signed-off-by: Mike Galbraith <bitbucket@xxxxxxxxx> --- a/drivers/misc/hwlat_detector.c 2013-08-30 07:16:05.387959392 +0200 +++ b/drivers/misc/hwlat_detector.c 2013-08-30 07:10:52.958670183 +0200 @@ -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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html