From patchwork Wed Feb 8 23:14:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 93652 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2928854qgi; Wed, 8 Feb 2017 15:25:25 -0800 (PST) X-Received: by 10.98.76.132 with SMTP id e4mr145078pfj.24.1486596325209; Wed, 08 Feb 2017 15:25:25 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g28si8354989pfd.227.2017.02.08.15.25.24; Wed, 08 Feb 2017 15:25:25 -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; dkim=pass header.i=@linaro.org; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbdBHXZW (ORCPT + 25 others); Wed, 8 Feb 2017 18:25:22 -0500 Received: from mail-wr0-f172.google.com ([209.85.128.172]:34081 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbdBHXZV (ORCPT ); Wed, 8 Feb 2017 18:25:21 -0500 Received: by mail-wr0-f172.google.com with SMTP id o16so70879403wra.1 for ; Wed, 08 Feb 2017 15:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tJ7TRU2LtuvGCXpLKN0Bf+47IyyP/3OihjWLv6sWUvM=; b=V5/GKGwWffFuGoFT8z/oTLmzrXd4QvzARFcxygFzIByb0aaXgopGczA0Erbd7ZZV+z 5NL4YCRGHoyTQdnvyaJ7VS+jX24f1ANbVbR2dmgHJK7YSMR61c90ow0SeDBRXx/eIzRv K/ipEch98isAPeS17/hf/WcmT3R4fqRmUCxfU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tJ7TRU2LtuvGCXpLKN0Bf+47IyyP/3OihjWLv6sWUvM=; b=TtNd0hy9QJ58MyFFJS88m7DNIuNC+ZFg7f6IOZ7mqedYfl424itEDciPlXmCHbW1XW LbuFyS15ZD3r7jtOvKwfESJACB/TvOetUHtG6gVEQiTjVPnaiauwFfopIs4yz9UzYda3 IkAVTog0TH5ixnT9PKjgqTzYTRSv6H+7qsSmbzdvxLiKSuCRaNQjc9nvUb+k1IOfHsom HmgTJLXpgWJxjVeQTY2p6czLfpo89esTje+C6CNOJlXUd9kxBMV9OIChEZATrlHdOD/O WvNLX17IXzwoC52eHMwTMOtw8XVZKFYKfjqb+EO4EkZ3k7TlEnwKqOfc7wmwwt6EeKaU kAqg== X-Gm-Message-State: AMke39kYNxI2o5zhSIj9BPfPdkbvuyS+zvaCBUsOwx0CEqHKPbU48lYWyf6J82X/xwcryv0J X-Received: by 10.223.162.153 with SMTP id s25mr17542wra.149.1486595769791; Wed, 08 Feb 2017 15:16:09 -0800 (PST) Received: from mai.lan ([2001:41d0:fe90:b800:3f16:bcf7:601c:a13b]) by smtp.gmail.com with ESMTPSA id u42sm15422821wrc.1.2017.02.08.15.16.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Feb 2017 15:16:09 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: Ding Tianhong , Mark Rutland , Jonathan Corbet , Marc Zyngier , "Rafael J. Wysocki" , Ingo Molnar , Andrew Morton , Greg Kroah-Hartman , linux-doc@vger.kernel.org (open list:DOCUMENTATION), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM ARCHITECTED TIMER DRIVER) Subject: [PATCH 08/10] clocksource/drivers/arm_arch_timer: Remove fsl-a008585 parameter Date: Thu, 9 Feb 2017 00:14:42 +0100 Message-Id: <1486595685-10232-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486595685-10232-1-git-send-email-daniel.lezcano@linaro.org> References: <20170208231208.GB12695@mai> <1486595685-10232-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ding Tianhong Having a command line option to flip the errata handling for a particular erratum is a little bit unusual, and it's vastly superior to pass this in the DT. By common consensus, it's best to kill off the command line parameter. Signed-off-by: Ding Tianhong [Mark: split patch, reword commit message] Signed-off-by: Mark Rutland Acked-by: Daniel Lezcano Signed-off-by: Daniel Lezcano --- Documentation/admin-guide/kernel-parameters.txt | 9 --------- drivers/clocksource/arm_arch_timer.c | 14 -------------- 2 files changed, 23 deletions(-) -- 2.7.4 diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index be7c0d9..d8fc55a 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -549,15 +549,6 @@ loops can be debugged more effectively on production systems. - clocksource.arm_arch_timer.fsl-a008585= - [ARM64] - Format: - Enable/disable the workaround of Freescale/NXP - erratum A-008585. This can be useful for KVM - guests, if the guest device tree doesn't show the - erratum. If unspecified, the workaround is - enabled based on the device tree. - clearcpuid=BITNUM [X86] Disable CPUID feature X for the kernel. See arch/x86/include/asm/cpufeatures.h for the valid bit diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 4c8c3fb..6a9d031 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -101,20 +101,6 @@ EXPORT_SYMBOL_GPL(arch_timer_read_ool_enabled); static int fsl_a008585_enable = -1; -static int __init early_fsl_a008585_cfg(char *buf) -{ - int ret; - bool val; - - ret = strtobool(buf, &val); - if (ret) - return ret; - - fsl_a008585_enable = val; - return 0; -} -early_param("clocksource.arm_arch_timer.fsl-a008585", early_fsl_a008585_cfg); - u32 __fsl_a008585_read_cntp_tval_el0(void) { return __fsl_a008585_read_reg(cntp_tval_el0);