Received: by 10.223.185.116 with SMTP id b49csp4033375wrg; Tue, 13 Feb 2018 11:36:05 -0800 (PST) X-Google-Smtp-Source: AH8x227iCCqByuqxG5zSmxX+ofUIOED2pXtCFYRi8op14iTzBhOW9NlfXWM3/lQLTCmVaVfZk/Hy X-Received: by 10.99.47.132 with SMTP id v126mr1826096pgv.129.1518550565575; Tue, 13 Feb 2018 11:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518550565; cv=none; d=google.com; s=arc-20160816; b=vtzCAH4ZMYeVapo/uskZcOhjXTb7uFDePw6/4eILiRM6xRc7+a5nzE+KcnZLKoBEFQ BwZlKJ2sl9a/JYiu83H/t74FOUwTuOreWeipLC4oESU1IO+FhotFo19eXGJbp/1rH2WG BUauA4JjaoZVH3riny/OE+JxqHagBORORExNj/LSzt0SVGXOndgoMge2nGQQQKDp8gzZ 7h04Te3bwGEL3v5WXran2S/gUq+5IMfqMIkHKQDhdWDTPNP54CqMCkUULKP9c/STM5Ri jPTOJEYB5kb5pGsUvcOCVREFkKyi6gJHln0eC9h67+Chg4l7H3TEjBrGFqqutDmkmHVs 4YzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=41IfT4M8mLLcNcMQbfg9lm7e4KtLbp6T/FM2OlKWiEc=; b=D1LSnEZ89/v/WHRidlEXCvt6fDRCmYJsl3Wfo1YWWhlmKc5jj5yPHwlkBMGugRU3dS Y8indnopKicpi5BHEL+yPZdVv/meNDBENdQUAdCFaFDzN6Zx7hAJPZMQZ0LOCxwJ1w4i MD6h8CIFa7BCPWGu/cFW/WEQMp4w/24KIQqwbAtm6PkdsgAhXGFtiCAao5Xg1GrOC5rW sgKft3fxEsiudt6IpGumONRxKOGHw3dngRFqb0KDiUrOEfLlyaRfmsP5idnj+oByxjR3 0O7gbSDkzYOmjxINvp0VGSBXXLtnniRiyxpIhH7GwDI382YbiA78okDw53w50V32L8rM 7EMg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si371676pfk.163.2018.02.13.11.35.51; Tue, 13 Feb 2018 11:36:05 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965656AbeBMTfK (ORCPT + 99 others); Tue, 13 Feb 2018 14:35:10 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:56135 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965313AbeBMTfJ (ORCPT ); Tue, 13 Feb 2018 14:35:09 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 4339724E0535; Tue, 13 Feb 2018 11:35:09 -0800 (PST) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id EF857D9C; Tue, 13 Feb 2018 11:35:07 -0800 (PST) From: Alexey Brodkin To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Alexey Brodkin Subject: [PATCH] ARC: Don't check presense of Timer1 in SMP builds Date: Tue, 13 Feb 2018 22:35:04 +0300 Message-Id: <20180213193504.28671-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case of SMP we use GFRC from ARconnect and Timer1 is left untouched. Still with that check in place we're panicing if Timer1 is missing in current hardware which is quite unexpected. Signed-off-by: Alexey Brodkin --- arch/arc/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index cf97f7d88934..1142d76a7e8f 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -391,8 +391,10 @@ static void arc_chk_core_config(void) if (!cpu->extn.timer0) panic("Timer0 is not present!\n"); +#ifndef CONFIG_SMP if (!cpu->extn.timer1) panic("Timer1 is not present!\n"); +#endif #ifdef CONFIG_ARC_HAS_DCCM /* -- 2.11.0