Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1334034imm; Thu, 23 Aug 2018 01:00:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFoGdhJ1bpUnVd27xfaVCXYgilv1ZE4+Uhout+ydEAjdi07XXIlIseOg/JDwX2NzN566xK X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr5490230pls.79.1535011247013; Thu, 23 Aug 2018 01:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535011246; cv=none; d=google.com; s=arc-20160816; b=BW8KiPVb2l2ibsp5j/JuVLSOtUykTlJcjUY6vpgAXJ8G6RVTtj3KunJa+4aHGPyfqV 7mtUV7BUSM5EyBEKG3EFMvt/H+QEIWKBi7Bev2+2lqaLudMIDQRSZDGAc2tk9jZND5mW gfb8kPcre6w3l+zWwPYL1iy082ZscsDpODg5Ib0bFGVUdjtGRFaY/ILSriOff/zf4c5s gqpK+n7w6Nhb9KmNudX/QckmruZObMyZmeNIFa5MSNM5b/WpUYCpwhepHatb4aPPyfvM tD7aBRomfk+q491aylNDwZENfNtoFvkFDURTDU70t91nw4EbjgSjX1xWMO9fI6EE385O YQWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ju5J/G5MzIZ+dAAmETQEK57GG4WWLGg5l06tChLIvw8=; b=sBvEQ9+34My1zPxlFO4AJQCDTqx8md6EMMJEsuZeXMPPBx1ELb573FYsNQa0Qey4ft YypKOvm7FgE7vbl8g+2cv9yyVdlCLbPOKZJ9OrpFF1ZEZZNyoKVxWKjcNGstcs3mYMgF +DgFUM0ecfkpp0zlWbIGll8l3I3bqrlntLAuaT68dOKTQv+21xYK3KrGVKDz5pucY+gj m8oscb3w9qjSXZWp2teuNKgYVz/H6La26XAW3t08cKByRwZ+nWd+ABVubNIDjgbjRFGL E3MtU4mkZXozddfuwCthk74J91PhxDEBnx/yczGdLAs/IdTt+kFkC7GBJo8FgB3Vvtpj dgdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7-v6si3716452pgs.174.2018.08.23.01.00.32; Thu, 23 Aug 2018 01:00:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728096AbeHWL0v (ORCPT + 99 others); Thu, 23 Aug 2018 07:26:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41810 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbeHWL0u (ORCPT ); Thu, 23 Aug 2018 07:26:50 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4EB7EBB6; Thu, 23 Aug 2018 07:58:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexey Brodkin , Vineet Gupta , Sasha Levin Subject: [PATCH 4.4 18/79] ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP Date: Thu, 23 Aug 2018 09:52:54 +0200 Message-Id: <20180823074919.909220617@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823074918.641878835@linuxfoundation.org> References: <20180823074918.641878835@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexey Brodkin [ Upstream commit 2f24ef7413a4d91657ef04e77c27ce0b313e6c95 ] machine_desc->init_per_cpu() hook is supposed to be per cpu initialization and would seem to apply equally to UP and/or SMP. Infact the comment in header file seems to suggest it works for UP too, which was not the case and this patch. This enables !CONFIG_SMP build for platforms such as hsdk. Signed-off-by: Alexey Brodkin Signed-off-by: Vineet Gupta [vgupta: trimmeed changelog] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arc/include/asm/mach_desc.h | 2 -- arch/arc/kernel/irq.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) --- a/arch/arc/include/asm/mach_desc.h +++ b/arch/arc/include/asm/mach_desc.h @@ -34,9 +34,7 @@ struct machine_desc { const char *name; const char **dt_compat; void (*init_early)(void); -#ifdef CONFIG_SMP void (*init_per_cpu)(unsigned int); -#endif void (*init_machine)(void); void (*init_late)(void); --- a/arch/arc/kernel/irq.c +++ b/arch/arc/kernel/irq.c @@ -31,10 +31,10 @@ void __init init_IRQ(void) /* a SMP H/w block could do IPI IRQ request here */ if (plat_smp_ops.init_per_cpu) plat_smp_ops.init_per_cpu(smp_processor_id()); +#endif if (machine_desc->init_per_cpu) machine_desc->init_per_cpu(smp_processor_id()); -#endif } /*