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:32:30 +0000 (13:32 -0800)
commitc7e30e0abd1de37aee88b7a91db39ad2edb323a3
tree478fc82eda529c8c020a5a5119faaaea95728d34
parent0e790ebdbef30619e0e52f738ef7d1c27abe6c54
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