From patchwork Fri Jan 23 05:36:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 5690881 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B1EFAC058D for ; Fri, 23 Jan 2015 05:35:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9B9420270 for ; Fri, 23 Jan 2015 05:35:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C60020265 for ; Fri, 23 Jan 2015 05:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753666AbbAWFfO (ORCPT ); Fri, 23 Jan 2015 00:35:14 -0500 Received: from mga01.intel.com ([192.55.52.88]:45553 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753603AbbAWFfK (ORCPT ); Fri, 23 Jan 2015 00:35:10 -0500 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 22 Jan 2015 21:35:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="444042125" Received: from gerry-dev.bj.intel.com ([10.238.158.52]) by FMSMGA003.fm.intel.com with ESMTP; 22 Jan 2015 21:21:41 -0800 From: Jiang Liu To: Thomas Gleixner , Jiang Liu Cc: Borislav Petkov , Tony Luck , linux-kernel@vger.kernel.org, Paul Mundt , linux-sh@vger.kernel.org Subject: [Resend Patch v4 08/16] smp, sh: Kill SMP single function call interrupt Date: Fri, 23 Jan 2015 13:36:47 +0800 Message-Id: <1421991416-20297-9-git-send-email-jiang.liu@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1421991416-20297-1-git-send-email-jiang.liu@linux.intel.com> References: <1421991416-20297-1-git-send-email-jiang.liu@linux.intel.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 9a46ad6d6df3b54 "smp: make smp_call_function_many() use logic similar to smp_call_function_single()" has unified the way to handle single and multiple cross-CPU function calls. Now only one interrupt is needed for architecture specific code to support generic SMP function call interfaces, so kill the redundant single function call interrupt. Cc: Paul Mundt Signed-off-by: Jiang Liu --- arch/sh/include/asm/smp.h | 1 - arch/sh/kernel/smp.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/sh/include/asm/smp.h b/arch/sh/include/asm/smp.h index 78b0d0f4b24b..93ce87b3a18d 100644 --- a/arch/sh/include/asm/smp.h +++ b/arch/sh/include/asm/smp.h @@ -25,7 +25,6 @@ extern int __cpu_logical_map[NR_CPUS]; enum { SMP_MSG_FUNCTION, SMP_MSG_RESCHEDULE, - SMP_MSG_FUNCTION_SINGLE, SMP_MSG_TIMER, SMP_MSG_NR, /* must be last */ diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index fc5acfc93c92..fc03baf8b661 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -282,7 +282,7 @@ void arch_send_call_function_ipi_mask(const struct cpumask *mask) void arch_send_call_function_single_ipi(int cpu) { - mp_ops->send_ipi(cpu, SMP_MSG_FUNCTION_SINGLE); + mp_ops->send_ipi(cpu, SMP_MSG_FUNCTION); } void smp_timer_broadcast(const struct cpumask *mask) @@ -309,9 +309,6 @@ void smp_message_recv(unsigned int msg) case SMP_MSG_RESCHEDULE: scheduler_ipi(); break; - case SMP_MSG_FUNCTION_SINGLE: - generic_smp_call_function_single_interrupt(); - break; case SMP_MSG_TIMER: ipi_timer(); break;