[PATCH] Split schedule() {raw_}irq warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	I changed this error message so it's clear what triggered it.
If it's a raw_ type it says it's raw.

Signed-Off-By: Daniel Walker <[email protected]>

Index: linux-2.6.15/kernel/sched.c
===================================================================
--- linux-2.6.15.orig/kernel/sched.c
+++ linux-2.6.15/kernel/sched.c
@@ -3568,9 +3568,10 @@ asmlinkage void __sched schedule(void)
 	 */
 	if (unlikely(irqs_disabled() || raw_irqs_disabled())) {
 		stop_trace();
-		printk(KERN_ERR "BUG: scheduling with irqs disabled: "
+		printk(KERN_ERR "BUG: scheduling with %sirqs disabled: "
 			"%s/0x%08x/%d\n",
-				current->comm, preempt_count(), current->pid);
+				(irqs_disabled())?"":"raw ", current->comm, 
+				preempt_count(), current->pid);
 		print_symbol("caller is %s\n",
 			(long)__builtin_return_address(0));
 		dump_stack();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux