Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761603Ab2EQKME (ORCPT ); Thu, 17 May 2012 06:12:04 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:37225 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761553Ab2EQKL7 (ORCPT ); Thu, 17 May 2012 06:11:59 -0400 From: Yong Zhang To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Cc: ralf@linux-mips.org, david.daney@cavium.com Subject: [PATCH 7/8] MIPS: smp: Warn on too early irq enable Date: Thu, 17 May 2012 18:10:09 +0800 Message-Id: <1337249410-7162-8-git-send-email-yong.zhang0@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1337249410-7162-1-git-send-email-yong.zhang0@gmail.com> References: <1337249410-7162-1-git-send-email-yong.zhang0@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 33 From: Yong Zhang Just to catch a potential issue. Signed-off-by: Yong Zhang --- arch/mips/kernel/smp.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 042145f..0d48598 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c @@ -130,6 +130,11 @@ asmlinkage __cpuinit void start_secondary(void) synchronise_count_slave(); + /* + * irq will be enabled in ->smp_finish(), enable it too early + * is dangerous. + */ + WARN_ON_ONCE(!irqs_disabled()); mp_ops->smp_finish(); cpu_idle(); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/