aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/stk8312.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2019-04-16 14:33:51 -0700
committerBorislav Petkov <bp@suse.de>2019-06-07 23:21:39 +0200
commit0ade0b6240c4853cf9725924c46c10f4251639d7 (patch)
tree5cab0c395bb3d2b05bd0baafd31156f66bb7d8f1 /drivers/iio/accel/stk8312.c
parentRAS/CEC: Fix binary search function (diff)
downloadlinux-dev-0ade0b6240c4853cf9725924c46c10f4251639d7.tar.xz
linux-dev-0ade0b6240c4853cf9725924c46c10f4251639d7.zip
RAS/CEC: Convert the timer callback to a workqueue
cec_timer_fn() is a timer callback which reads ce_arr.array[] and updates its decay values. However, it runs in interrupt context and the mutex protection the CEC uses for that array, is inadequate. Convert the used timer to a workqueue to keep the tasks the CEC performs preemptible and thus low-prio. [ bp: Rewrite commit message. s/timer/decay/gi to make it agnostic as to what facility is used. ] Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector") Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: <stable@vger.kernel.org> Link: https://lkml.kernel.org/r/20190416213351.28999-2-xiyou.wangcong@gmail.com
Diffstat (limited to 'drivers/iio/accel/stk8312.c')
0 files changed, 0 insertions, 0 deletions