From patchwork Mon Aug 11 15:42:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 35210 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6BA8F20AEC for ; Mon, 11 Aug 2014 15:42:30 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id nu7sf38327602obb.11 for ; Mon, 11 Aug 2014 08:42:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:date :message-id:subject:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=SsH7Ckog6Q0vU8dY0iLzXHL/w1rqmwj2mO+KLpuldlM=; b=NurhV3q8NFSmqqdtm/7UJ1zTaFK6Cx1KhYZ1FhaFHb0eyDSQ5pr1kEbL4m+nrhHkPh qOIe76eRdjalJY83tGY460vmkOJu63qUWTzebAFXfKa3GEnvaa1fmdtFCrU310uvyNjm gDKA7GYFwo2QCN0wlUq/YQVdu3SQICqm3C8y0gmAGKjPb2hew6YlkxtlqRV7fHxcYbIy GqmcZDFCoMFzr6F6FcL6C3mRpqtbTKo89eYNxY/5ys/vgnsxDLrbk/TxqV9+EIzAcV32 iQrceNA7Btvbz/l9m9I9d4OsuKTteHHgH51FgivLmdoG5Gh5GRSb+9FxFWqf3jBab6Qd FV5Q== X-Gm-Message-State: ALoCoQnoUzr4gJL73c5sbX48+eHWLDyiYkEqzl//8ZqUBvrYOtHl6HFQSzt+a0+OtBddTWaz+kgA X-Received: by 10.43.1.133 with SMTP id nq5mr14633702icb.21.1407771750021; Mon, 11 Aug 2014 08:42:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.176 with SMTP id 45ls1030882qgx.16.gmail; Mon, 11 Aug 2014 08:42:29 -0700 (PDT) X-Received: by 10.220.166.207 with SMTP id n15mr288042vcy.75.1407771749940; Mon, 11 Aug 2014 08:42:29 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id wv11si6686367vcb.35.2014.08.11.08.42.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 08:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so11768738vcb.32 for ; Mon, 11 Aug 2014 08:42:29 -0700 (PDT) X-Received: by 10.52.3.40 with SMTP id 8mr19648164vdz.24.1407771749843; Mon, 11 Aug 2014 08:42:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp174530vcb; Mon, 11 Aug 2014 08:42:29 -0700 (PDT) X-Received: by 10.68.57.144 with SMTP id i16mr43055610pbq.48.1407771748912; Mon, 11 Aug 2014 08:42:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si10149902pdk.129.2014.08.11.08.42.28 for ; Mon, 11 Aug 2014 08:42:28 -0700 (PDT) Received-SPF: none (google.com: linux-input-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065AbaHKPmZ (ORCPT ); Mon, 11 Aug 2014 11:42:25 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:58368 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754389AbaHKPmX (ORCPT ); Mon, 11 Aug 2014 11:42:23 -0400 Received: from cpc11-sgyl31-2-0-cust672.sgyl.cable.virginm.net ([94.175.94.161] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XGrjm-0004Zv-JF; Mon, 11 Aug 2014 15:42:19 +0000 Received: from broonie by debutante with local (Exim 4.83) (envelope-from ) id 1XGrjj-0000R8-M7; Mon, 11 Aug 2014 16:42:15 +0100 From: Mark Brown To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linaro-kernel@lists.linaro.org, Mark Brown Date: Mon, 11 Aug 2014 16:42:10 +0100 Message-Id: <1407771730-1641-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.1 X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: [PATCH] input/joystick: use get_cycles on ARMv8 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-input-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Brown As with ARM the ARMv8 architecture provides a cycle counter which can be used to provide a high resolution time for the joystick driver and silence the build warning that results from not having a precise timer on ARMv8, making allmodconfig and allyesconfig quieter. Signed-off-by: Mark Brown --- drivers/input/joystick/analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c index 9135606c8649..ab0fdcd36e18 100644 --- a/drivers/input/joystick/analog.c +++ b/drivers/input/joystick/analog.c @@ -158,7 +158,7 @@ static unsigned int get_time_pit(void) #define GET_TIME(x) rdtscl(x) #define DELTA(x,y) ((y)-(x)) #define TIME_NAME "TSC" -#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_TILE) +#elif defined(__alpha__) || defined(CONFIG_MN10300) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_TILE) #define GET_TIME(x) do { x = get_cycles(); } while (0) #define DELTA(x,y) ((y)-(x)) #define TIME_NAME "get_cycles"