From patchwork Wed Mar 26 11:21:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27105 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9C7420369 for ; Wed, 26 Mar 2014 11:23:28 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wo20sf6810030obc.6 for ; Wed, 26 Mar 2014 04:23:28 -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:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=cySnWhnV8rtEqnvQQMk5tnQO5ItKjy1YZghjGWUmJUc=; b=Pr8rlBLaS2b7j95sJxEUjXV2pdjd3NmoUo01nTjcKDivyv8zJFTTgKdP9QLLpULK9h mFWiOyGXPidDnG3IJgMJehifYlziX1KgXkGik1ax3OaDncQCfwehom18AnnzRWLivFTw K1M1VYmzt/6Fko6FOkWrlfwG9s18XlWFPNyr2QiFy4GhFxiqQdkH0QSzmyJDMjIyB2XJ wLiow/YQVHQr2jq5axkz6nSYmiO6JWRIJjxHuGuZn1LvKxliF2pohcW2RUZdHvnVnWXp EEAyddxPF5aO4bH00bAgCSqfkDV4mUOw/ZtkPgvEZEmHTfVtkkD/OcLIS0cYq5+Z4N6l 1Qlw== X-Gm-Message-State: ALoCoQkXh2ZYLJy1H+jNRxSq3HJjhlhgPJ9FJCs6/u0Fd4meTIXYk1iLJVafPBuU7dDUhIBcdM3A X-Received: by 10.50.164.198 with SMTP id ys6mr10265221igb.2.1395833008248; Wed, 26 Mar 2014 04:23:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.10 with SMTP id i10ls582559qgf.62.gmail; Wed, 26 Mar 2014 04:23:28 -0700 (PDT) X-Received: by 10.52.191.100 with SMTP id gx4mr16267664vdc.4.1395833008142; Wed, 26 Mar 2014 04:23:28 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id sq9si4547541vdc.107.2014.03.26.04.23.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:23:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so2171968vcb.33 for ; Wed, 26 Mar 2014 04:23:28 -0700 (PDT) X-Received: by 10.220.95.139 with SMTP id d11mr12050201vcn.21.1395833008067; Wed, 26 Mar 2014 04:23:28 -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.220.78.9 with SMTP id i9csp38093vck; Wed, 26 Mar 2014 04:23:27 -0700 (PDT) X-Received: by 10.66.5.135 with SMTP id s7mr3884805pas.154.1395833007137; Wed, 26 Mar 2014 04:23:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zw7si9858230pac.193.2014.03.26.04.23.25; Wed, 26 Mar 2014 04:23:25 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754716AbaCZLWv (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:51 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:39895 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCZLWr (ORCPT ); Wed, 26 Mar 2014 07:22:47 -0400 Received: by mail-we0-f179.google.com with SMTP id x48so1004995wes.38 for ; Wed, 26 Mar 2014 04:22:46 -0700 (PDT) X-Received: by 10.180.101.166 with SMTP id fh6mr28538459wib.2.1395832966640; Wed, 26 Mar 2014 04:22:46 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id i7sm1810871wib.1.2014.03.26.04.22.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:45 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 10/14] hrtimer: remove clock_was_set_delayed() from hrtimer.h Date: Wed, 26 Mar 2014 16:51:16 +0530 Message-Id: <7f1d2271c0f37dab9e446767880b8b9759750d50.1395832156.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , clock_was_set_delayed() is called from only hrtimer.c and so should be marked static. Along with that its declaration and dummy definition must be removed from hrtimer.h. Signed-off-by: Viresh Kumar --- include/linux/hrtimer.h | 5 ----- kernel/hrtimer.c | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 17c08ca..6f524db 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -288,8 +288,6 @@ extern void hrtimer_peek_ahead_timers(void); # define MONOTONIC_RES_NSEC HIGH_RES_NSEC # define KTIME_MONOTONIC_RES KTIME_HIGH_RES -extern void clock_was_set_delayed(void); - #else # define MONOTONIC_RES_NSEC LOW_RES_NSEC @@ -310,9 +308,6 @@ static inline int hrtimer_is_hres_active(struct hrtimer *timer) { return 0; } - -static inline void clock_was_set_delayed(void) { } - #endif extern void clock_was_set(void); diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index e6e1255..1e4eedb 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -715,7 +715,7 @@ static DECLARE_WORK(hrtimer_work, clock_was_set_work); * Called from timekeeping and resume code to reprogramm the hrtimer * interrupt device on all cpus. */ -void clock_was_set_delayed(void) +static void clock_was_set_delayed(void) { schedule_work(&hrtimer_work); } @@ -732,6 +732,7 @@ static inline int hrtimer_enqueue_reprogram(struct hrtimer *timer, } static inline void hrtimer_init_hres(struct hrtimer_cpu_base *base) { } static inline void retrigger_next_event(void *arg) { } +static inline void clock_was_set_delayed(void) { } #endif /* CONFIG_HIGH_RES_TIMERS */