On Fri, Jun 07, 2013 at 03:50:55PM +0100, Ard Biesheuvel wrote:
+void kernel_neon_begin(void) +{
- /* Avoid using the NEON in interrupt context */
- might_sleep();
The patch looks fine but this might_sleep() does not feel right since we don't expect the subsequent code to sleep. Would something like BUG_ON(in_interrupt()) work?