Hi i have following Issue:

in the terminition function; code:
s_wakeup_kthread=1;
kthread_stop(s_kthread_id);

thread function loop:

while(1){
rc=wait_event_interruptable(s_gpio_wq, s_wakeup_kthread);
if(rc = -ERESTARTSYS)break;
}


The Thread unfortunately doesnt wake up on therminition.
I dont know why - PLZ Help!!!!