From: Oleg Nesterov Date: Wed, 28 Mar 2012 12:20:57 +0000 (+0000) Subject: powerpc/eeh: Remove eeh_event_handler()->daemonize() X-Git-Tag: MMI-PSA29.97-13-9~17080^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37ef9bd48af6ab9a3d1fd28df4f929abc19f2cc3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git powerpc/eeh: Remove eeh_event_handler()->daemonize() daemonize() is only needed when a user-space task does kernel_thread(). eeh_event_handler() thread is created by the worker kthread, and thus it doesn't need the soon-to-be-deprecated daemonize(). Signed-off-by: Oleg Nesterov Acked-by: Linas Vepstas Acked-by: Tejun Heo Acked-by: Matt Fleming Signed-off-by: Andrew Morton Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/pseries/eeh_event.c b/arch/powerpc/platforms/pseries/eeh_event.c index 4a4752565856..92dd84c124f1 100644 --- a/arch/powerpc/platforms/pseries/eeh_event.c +++ b/arch/powerpc/platforms/pseries/eeh_event.c @@ -59,7 +59,7 @@ static int eeh_event_handler(void * dummy) struct eeh_event *event; struct eeh_dev *edev; - daemonize("eehd"); + set_task_comm(current, "eehd"); set_current_state(TASK_INTERRUPTIBLE); spin_lock_irqsave(&eeh_eventlist_lock, flags);