From patchwork Thu Dec 12 14:09:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 300667 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EECC62C00AC for ; Fri, 13 Dec 2013 01:10:15 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751611Ab3LLOKK (ORCPT ); Thu, 12 Dec 2013 09:10:10 -0500 Received: from forward2m.mail.yandex.net ([37.140.138.2]:36782 "EHLO forward2m.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527Ab3LLOKK (ORCPT ); Thu, 12 Dec 2013 09:10:10 -0500 Received: from web21m.yandex.ru (web21m.yandex.ru [37.140.138.112]) by forward2m.mail.yandex.net (Yandex) with ESMTP id 305EC5CA056D; Thu, 12 Dec 2013 18:09:52 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web21m.yandex.ru (Yandex) with ESMTP id 3216419A054F; Thu, 12 Dec 2013 18:09:51 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1386857391; bh=0HZYFhcTyYIkdayY4pOGDZ+U5vvzvmrDOKSd0zR2bxg=; h=From:To:Cc:Subject:Date; b=UjBb1ftodL5FFo3ca4ILdC5F5KfV/0Kbp6reOVr6ZC7IcN05URw8XT8vOATa3Bfz0 aC5LHIWZ5Bel4Rn/WVhVnab/HMtXTh1pHLh0m+V4zyw+Sbi34yRzzQTxMfcXqCRLvH y1STY49sXwnQcdCXx5NJ0M9mRLEKnKwbYbMGQQlc= Received: from 80-84-123-237.pool.symbios.ru (80-84-123-237.pool.symbios.ru [80.84.123.237]) by web21m.yandex.ru with HTTP; Thu, 12 Dec 2013 18:09:50 +0400 From: Kirill Tkhai To: "sparclinux@vger.kernel.org" Cc: David Miller , Sam Ravnborg Subject: [PATCH] sparc64: smp_callin: Enable irqs after preemption is disabled MIME-Version: 1.0 Message-Id: <62771386857390@web21m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 12 Dec 2013 18:09:50 +0400 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org Most of other architectures have below suggested order. So lets do the same to fit generic idle loop scheme better. Signed-off-by: Kirill Tkhai --- arch/sparc/kernel/smp_64.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index b66a533..b085311 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c @@ -123,11 +123,12 @@ void smp_callin(void) rmb(); set_cpu_online(cpuid, true); - local_irq_enable(); /* idle thread is expected to have preempt disabled */ preempt_disable(); + local_irq_enable(); + cpu_startup_entry(CPUHP_ONLINE); }