EDAC: Correct workqueue setup path
authorBorislav Petkov <bp@suse.de>
Wed, 12 Feb 2014 17:15:00 +0000 (18:15 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 14 Feb 2014 09:40:47 +0000 (10:40 +0100)
commitcb6ef42e516cb8948f15e4b70dc03af8020050a2
treebc4a1154843c73bf699ffba106b7a762ba4fe4da
parent9da21b1509d8aa7ab4846722817d16c72d656c91
EDAC: Correct workqueue setup path

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
Cc: <stable@vger.kernel.org>
drivers/edac/edac_mc.c