From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: [PATCH RT] Remove double warning print with faulty preempt disable nesting Date: Tue, 19 Jun 2007 16:23:47 -0400 Message-ID: <1182284627.15228.31.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Thomas Gleixner , LKML , RT To: Ingo Molnar Return-path: Received: from ms-smtp-02.nyroc.rr.com ([24.24.2.56]:63918 "EHLO ms-smtp-02.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755142AbXFSUYY (ORCPT ); Tue, 19 Jun 2007 16:24:24 -0400 Sender: linux-rt-users-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org On a faulty preempt disable bug we print out a warning but then we go and call preempt_enable_no_resched, which also can print out a warning. This is redundant. Signed-off-by: Steven Rostedt Index: linux-2.6.21-rt9/lib/smp_processor_id.c =================================================================== --- linux-2.6.21-rt9.orig/lib/smp_processor_id.c +++ linux-2.6.21-rt9/lib/smp_processor_id.c @@ -47,7 +47,11 @@ unsigned int notrace debug_smp_processor dump_stack(); out_enable: - preempt_enable_no_resched(); + /* + * Don't print message if we enable to zero. + * We arleady printed a warning up above. + */ + __preempt_enable_no_resched(); out: return this_cpu; }