From patchwork Tue Dec 1 13:02:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noam Camus X-Patchwork-Id: 550841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2166D1400DE for ; Wed, 2 Dec 2015 00:11:27 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a3kiL-0004gH-H6; Tue, 01 Dec 2015 13:11:25 +0000 Received: from mail-db3on0066.outbound.protection.outlook.com ([157.55.234.66] helo=emea01-db3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a3keJ-0007oV-Rh for linux-snps-arc@lists.infradead.org; Tue, 01 Dec 2015 13:07:18 +0000 Received: from AMSPR02CA0016.eurprd02.prod.outlook.com (10.242.225.144) by AM3PR02MB1027.eurprd02.prod.outlook.com (10.163.182.153) with Microsoft SMTP Server (TLS) id 15.1.337.19; Tue, 1 Dec 2015 13:06:52 +0000 Received: from AM1FFO11FD030.protection.gbl (2a01:111:f400:7e00::148) by AMSPR02CA0016.outlook.office365.com (2a01:111:e400:8028::16) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Tue, 1 Dec 2015 13:06:52 +0000 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=ezchip.com; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 212.179.42.66 as permitted sender) receiver=protection.outlook.com; client-ip=212.179.42.66; helo=ezex10.ezchip.com; Received: from ezex10.ezchip.com (212.179.42.66) by AM1FFO11FD030.mail.protection.outlook.com (10.174.64.219) with Microsoft SMTP Server (TLS) id 15.1.331.11 via Frontend Transport; Tue, 1 Dec 2015 13:06:51 +0000 Received: from localhost.localdomain (10.1.3.132) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 1 Dec 2015 15:06:28 +0200 From: Noam Camus To: Subject: [PATCH v3 07/18] ARC: rename smp operation init_irq_cpu() to init_per_cpu() Date: Tue, 1 Dec 2015 15:02:54 +0200 Message-ID: <1448974985-11487-8-git-send-email-noamc@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1448974985-11487-1-git-send-email-noamc@ezchip.com> References: <1448974985-11487-1-git-send-email-noamc@ezchip.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-21974.007 X-TM-AS-Result: No--8.298600-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD030; 1:93mwTiaJr1d0qnE5WxFDMkc1Fvci19R+tfo3Zt2kdiWwMNCQGbGbLZHAAqRQ4jVyI1HzIbhoRaoejUBtcD158eIdbcTKj+plMGyX7eIyrkx8YBA+75xKUR0+iEWEECTUATtOkZ/1+lEN3aOvbLc1NywybkHyaUJDOv9gd3+mZAHTKy+5Cy9u2Kud0SksfDagSNJYZqd0+Bbxc5cFUPhYtEHr5M3LdUpAKpc6/RlAgpm489OkkDN1Yg2gBDJOZFQ7ddWBcuISCiCsdRn87y28dsD5uahahTiu5bT+nAkHR7pB/XkT/37/C1Tefi3CA4XBfGgF+iuxVBJ+ji52jOZnJtWZynvBuCrK0sX6ucggKFHIXz9Z9F31ix6ObBVxyQuVlw4MDhrXySpv7S+QM9dlsaZngopaqN2Qd1eq3xXXb1M= X-Forefront-Antispam-Report: CIP:212.179.42.66; CTRY:IL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50986999)(5001970100001)(107886002)(189998001)(76176999)(110136002)(2950100001)(92566002)(77096005)(50226001)(106466001)(105606002)(47776003)(586003)(6806005)(19580405001)(87936001)(36756003)(48376002)(104016004)(49486002)(5008740100001)(33646002)(229853001)(2351001)(19580395003)(5003940100001)(50466002)(11100500001)(85426001)(4001430100002)(1220700001)(1096002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR02MB1027; H:ezex10.ezchip.com; FPR:; SPF:Fail; PTR:ezmail.ezchip.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM3PR02MB1027; 2:ZKCtrkhbL5WUrGKnsxTuHLOfVe6nfXI943pWprsNM4IBfbh+P6bSwYf+hcCBlhM+QOrYazWgTbZ2oMg+galDI0J/E1H7NLRtAde2X2wo/Kskgdgqj4VqKWp0KRkp5YPD2mhghKdGp0y2R2+4aQThdA==; 3:UI16bd5MEJ64v+TQGSUvqxwOEjWuNI/qxlL2/6+JgeEN0f6Lxv1bRIliWQui+oZ7PGXrxgUZyJzpjtl2RVszXsTknGZag/tvpgelS/VnqXq27/QR3fzfkEJnVV+o7pFNKKYEw38gtPwLDrvmmNEGaYYhOy3DR7JFt1gv1hkcZqkxeW5lgDJJzJMYKihIMOus0bKDL1Gcgudz+oumr7/mzhmEZGqIG0TlUUVzAWcnZ90=; 25:Hs47NyB0USi4Xmb4U3UPNWZ8DhID0Ajperu+jNgGqs552YKD+jQob0RmSgMEh3XGc2IVhw/2mkvguYAGdMg2RtO0y0KZfQe+fUcu02FqR0rGA3uURb7oHhBSxlQjrnZBD3aif97j38qFFq/FzeCy5XQYvGjbzoq8MLJFPVjxY0gNrFc0T25hlT22vNViumWLvnOym7l0AyTdhF1twEDmQsvzwkFjZpOmVTohrj+y2s/RjWEriywVq7Dgs/3NJf9gqZ4fb8jE+Y9VPpfzZkE/dw==; 20:MjLoym6v8qUjWvLvQGfd1q/9hvaxFfqJFkbpQeRepWkbm/7mTObfW0inRB18VYAiERktdylm59uZFLjordnUmTwKH0Z4ihCY5IYDfWBkE+WcbAajVaFrrsI1T8NVAA2kCmC+iucPSUslfA1Jz7JBqrq3cpRu6whFGA6KD5y3uF0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR02MB1027; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:AM3PR02MB1027; BCL:0; PCL:0; RULEID:; SRVR:AM3PR02MB1027; X-Microsoft-Exchange-Diagnostics: 1; AM3PR02MB1027; 4:TgQZGoYBVYEXWE7MvI1lf6C7Lp0MqflpFsVg7vD6lRjjpya2OmfoiHjLBhdpd4QEzh4VCuIiZgOTUhWCDGfxxDh8OzI0cr8EnIKRsDnNiVLlCmW2Fn76frj676FtJf2RU47OT4BMlIG92Ffch0Qi41n6uR0hrvSE1pb8CYTzopLmnKJZpA+6rKqHuKRwqkdTEmGqU8gDWe7cWzk9j2O/GgvVo4VLBR3py338mZNqPgCB1GRTEoTynYDsdX7CRmB4z/BVC9bJ6QM1l6lsuhyi7N8BvTYnDC4gKIr3z1P+3zHW477YxhcNH+8uRFCGfevv4LB2m+KYLypidvYlF6Qa2q1TdWT0MW+agd/RCaQDBS4L9txjikWtsr2Jnz1OYvrz6eonbF0SON1VTJZvgdbZgeMjBem0XYZwH7PVX0oTGiYjK+/NisWm0sWv9E5WtAz4 X-Forefront-PRVS: 07778E4001 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM3PR02MB1027; 23:Sh6UV6vNqLNi9+2x/Z4QkNAwtm/hAY3HtL2eOH9NA?= =?us-ascii?Q?peSp35tVdZFaE5k2RK1EAsMD077jzMijTkp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fFa9kTRTD2WNV1uFc9sAN2IH29rhVA4tZmfrqQKuusrdqsBL?= =?us-ascii?Q?WKDU4PNan8mL/pfHxL95jsLwv3jFjxhqVQyN9YJpqWfl4jhp3mksSLrrBpOr?= =?us-ascii?Q?oegae9LREtwU7Q1G/QquhXeUIzAiDpNLkbRIZaEUoCKg3RKJw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM3PR02MB1027; 5:tlitv9Ew3W+M/XEddFRnO4k/JKL4gjkF4nsWrszB0ylWKaxfk48dkaAMYpOa4ko2qiz6c9uOrrEoCB3KHZOMbcmC3O4hjcMKhyYmtzMFquJnvLDssCfs5CTeTWN6ecl690b/eKxnCsyruvZVJhvFIw==; 24:e2a7ShcjrkFp1U++1ywZaRE1J0N1yFW0hM6yDzVniLVfaauzUS7JdQ5sy5oZbA/bt5piHiXFUhmxWQGPOLP8xMBAUGMh+AWG2K5p8qbBQN8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2015 13:06:51.6625 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[212.179.42.66]; Helo=[ezex10.ezchip.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR02MB1027 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151201_050716_533124_68B7A5CA X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [157.55.234.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [157.55.234.66 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cmetcalf@ezchip.com, Noam Camus , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Noam Camus This will better reflect its description i.e. "any needed setup..." and not just do an "IPI request". Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/smp.h | 4 ++-- arch/arc/kernel/irq.c | 4 ++-- arch/arc/kernel/mcip.c | 2 +- arch/arc/kernel/smp.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arc/include/asm/smp.h b/arch/arc/include/asm/smp.h index 133c867..9913804 100644 --- a/arch/arc/include/asm/smp.h +++ b/arch/arc/include/asm/smp.h @@ -48,7 +48,7 @@ extern int smp_ipi_irq_setup(int cpu, int irq); * @init_early_smp: A SMP specific h/w block can init itself * Could be common across platforms so not covered by * mach_desc->init_early() - * @init_irq_cpu: Called for each core so SMP h/w block driver can do + * @init_per_cpu: Called for each core so SMP h/w block driver can do * any needed setup per cpu (e.g. IPI request) * @cpu_kick: For Master to kickstart a cpu (optionally at a PC) * @ipi_send: To send IPI to a @cpu @@ -57,7 +57,7 @@ extern int smp_ipi_irq_setup(int cpu, int irq); struct plat_smp_ops { const char *info; void (*init_early_smp)(void); - void (*init_irq_cpu)(int cpu); + void (*init_per_cpu)(int cpu); void (*cpu_kick)(int cpu, unsigned long pc); void (*ipi_send)(int cpu); void (*ipi_clear)(int irq); diff --git a/arch/arc/kernel/irq.c b/arch/arc/kernel/irq.c index 2ee2265..a650650 100644 --- a/arch/arc/kernel/irq.c +++ b/arch/arc/kernel/irq.c @@ -29,8 +29,8 @@ void __init init_IRQ(void) #ifdef CONFIG_SMP /* a SMP H/w block could do IPI IRQ request here */ - if (plat_smp_ops.init_irq_cpu) - plat_smp_ops.init_irq_cpu(smp_processor_id()); + if (plat_smp_ops.init_per_cpu) + plat_smp_ops.init_per_cpu(smp_processor_id()); if (machine_desc->init_cpu_smp) machine_desc->init_cpu_smp(smp_processor_id()); diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c index 74a9b07..bd237ac 100644 --- a/arch/arc/kernel/mcip.c +++ b/arch/arc/kernel/mcip.c @@ -132,7 +132,7 @@ static void mcip_probe_n_setup(void) struct plat_smp_ops plat_smp_ops = { .info = smp_cpuinfo_buf, .init_early_smp = mcip_probe_n_setup, - .init_irq_cpu = mcip_setup_per_cpu, + .init_per_cpu = mcip_setup_per_cpu, .ipi_send = mcip_ipi_send, .ipi_clear = mcip_ipi_clear, }; diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index 5805878..0b061a4 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -132,8 +132,8 @@ void start_kernel_secondary(void) pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu); /* Some SMP H/w setup - for each cpu */ - if (plat_smp_ops.init_irq_cpu) - plat_smp_ops.init_irq_cpu(cpu); + if (plat_smp_ops.init_per_cpu) + plat_smp_ops.init_per_cpu(cpu); if (machine_desc->init_cpu_smp) machine_desc->init_cpu_smp(cpu);