pal: Add sleep during second stage processing.

Add wake/notify during second stage processing when
there is not enough data to avoid unnecessary loop
and log flooding.

Change-Id: I8132ce0df07092eb753d42bc2269b992c14a40df
3 files changed