]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbba2c828b336c014b02909f68f31625f43d6e5cf
treed12cf699e782c7a6b107842f180c129ffc801428
parent5dbd080eba09c066967c675fa5b9da0ce13f4d74
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