diff --git a/include/sys/mutex.h b/include/sys/mutex.h index ca76d6ea9..068fde1ab 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -68,8 +68,7 @@ mutex_enter(kmutex_t *mp) BUG_ON(mp->km_magic != KM_MAGIC); if (unlikely(in_atomic() && !current->exit_state)) { - dump_stack(); - printk("Scheduling while atomic: %s/0x%08x/%d\n", + printk("May schedule while atomic: %s/0x%08x/%d\n", current->comm, preempt_count(), current->pid); BUG(); } @@ -89,8 +88,7 @@ mutex_tryenter(kmutex_t *mp) BUG_ON(mp->km_magic != KM_MAGIC); if (unlikely(in_atomic() && !current->exit_state)) { - dump_stack(); - printk("Scheduling while atomic: %s/0x%08x/%d\n", + printk("May schedule while atomic: %s/0x%08x/%d\n", current->comm, preempt_count(), current->pid); BUG(); }