intel_scu_ipc: move error check out of the loop
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 21 Jan 2015 19:38:10 +0000 (21:38 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 29 Jan 2015 05:21:10 +0000 (21:21 -0800)
commitf0295a36dc31774019be278468e22c254f9626e4
treed12cf699e782c7a6b107842f180c129ffc801428
parent7c2e3c74767cf108635d1a5bd9fe014474c61ebf
intel_scu_ipc: move error check out of the loop

This is small performance optimization of the busy_loop().

While here, use BIT() macro instead of plain integers when check the status.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c