[qca-nss-qdisc] change yield to wait_event()
The use of yield() consumes CPU while waiting on a response
from the NSS. Switching to wait_event() will put the process
to sleep, and wake it up when a response finally arrives.
During code change, some APIs were identified to have bugs,
i.e. they did not wait for the response before returning.
These have been fixed as well.
Change-Id: Ia09610bb5c628a5c69262289177b0d4096ac5f1d
Signed-off-by: Sakthi Vignesh Radhakrishnan <sradhakr@codeaurora.org>
3 files changed