wake_up() or wake_up_interruptible()

From: Muni Sekhar
Date: Tue Sep 20 2016 - 08:27:12 EST

Hi All,

I am using a wait_event_interruptible() in kernel thread and waking
that thread using wake_up(), and this logic is working fine.

I would like to know whether it is the correct way of waking the
thread which is in interruptible sleep mode? What about
wake_up_interruptible() API? When this should be used?