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 20:41:29 +0000 (12:41 -0800)
commitdb06ad39b26d03f0bb4d4b6c011b15f696fe425f
tree60adee736a138debb6d6af6816b33ab4a432785c
parentba20cf8a5fc8b9dd14686dcf2ebdfcffa74c643c
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