借一下这个连结的例子
http://bbs.chinaunix.net/forum.php?mod=viewthread&action=printable&tid=784492
{u32 i;
  u16 *buff1;
  u32 *buff2;
  buff2=kmalloc(128,GFP_KERNEL);
  wait_event_interruptible(wq,flags!=0);
  ..............................
}
在中断处理函数中
{
  printk("interrupt 5 is working\n");
  flags=1;
  wake_up_interruptible(&wq);
}
请问在这情况下 flag=1和wake_up_interruptible是否需要用spin lock包起来呢??