Commit 5fc485f6 authored by Thomas Gleixner's avatar Thomas Gleixner

hwlat: Move wakequeue wake up out of irq disable region

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e5c3361d
......@@ -262,8 +262,6 @@ static int get_sample(void *unused)
/* Keep a running maximum ever recorded hardware latency */
if (sample > data.max_sample)
data.max_sample = sample;
wake_up(&data.wq); /* wake up reader(s) */
}
ret = 0;
......@@ -301,6 +299,8 @@ static int kthread_fn(void *unused)
goto err_out;
}
wake_up(&data.wq); /* wake up reader(s) */
interval = data.sample_window - data.sample_width;
do_div(interval, USEC_PER_MSEC); /* modifies interval value */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment