Schedule process add the funciton to lock interrupt, and anywhere that call schedule() may not use disable interruption.

Signed-off-by: Shanjin Yang <sjyang@credosemi.com>