]> git.hungrycats.org Git - linux/commit
EDAC: Correct workqueue setup path
authorBorislav Petkov <bp@suse.de>
Wed, 12 Feb 2014 17:15:00 +0000 (18:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 21:35:00 +0000 (13:35 -0800)
commitc9948e7cbd89ff3b1d1416fb496e9e1dcc7b13ec
treec0c6c3181eb22b824dd0681a698a6e52eac97df8
parent096a9cf95768f0dceb9c0ade97c5a7368a999f11
EDAC: Correct workqueue setup path

commit cb6ef42e516cb8948f15e4b70dc03af8020050a2 upstream.

We're using edac_mc_workq_setup() both on the init path, when
we load an edac driver and when we change the polling period
(edac_mc_reset_delay_period) through /sys/.../edac_mc_poll_msec.

On that second path we don't need to init the workqueue which has been
initialized already.

Thanks to Tejun for workqueue insights.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1391457913-881-1-git-send-email-prarit@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/edac_mc.c