From: Steven Rostedt Date: Tue, 27 Jun 2006 09:54:44 +0000 (-0700) Subject: [PATCH] BUG() if setscheduler is called from interrupt context X-Git-Tag: v2.6.18-rc1~502 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e5393a78b3fcca63e7748e38221dcca61c4aab;p=pandora-kernel.git [PATCH] BUG() if setscheduler is called from interrupt context Thomas Gleixner is adding the call to a rtmutex function in setscheduler. This call grabs a spin_lock that is not always protected by interrupts disabled. So this means that setscheduler cant be called from interrupt context. To prevent this from happening in the future, this patch adds a BUG_ON(in_interrupt()) in that function. (Thanks to akpm for this suggestion). Signed-off-by: Steven Rostedt Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed