From patchwork Mon Apr 14 16:23:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28333 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ABF6520534 for ; Mon, 14 Apr 2014 16:25:12 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf24529809qaq.2 for ; Mon, 14 Apr 2014 09:25:12 -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=58XiukLx4eXz1okECYgUDTeLVDCs9kk9IMPSAPj2bGw=; b=E2zscAKW9Qb8ZP9lIAmA8ZMVkqHGW+1gJT5u80qa1UESw6pmxLOd45mVZLE9I8u5/l L1JjvMjyz0SUPROU1c+HY5sxtLZ5VNWs1fxt2CsJM2Uaekuvl47pemjZNWUb2XeKRv9W ldPu+DJnl90jrJjyzMUDdVYCOMTOT39Wmceo9/nAXlIrR/vex9XX821h8KE9vBrg7yYQ 1rZkRNHIKRh2qisraX9YdzQnqQVudGoNqWNmNQ5Phop6iL4tf+u4Aen7Zmv5658N/t9V bWkVxZGohaKep/yQ3yM2LqDj/8xT814tQa7BfundgSOZq0ozVdKB2KUVI2zc4P7txtLR 9jnA== X-Gm-Message-State: ALoCoQnk8KIiCp01yZYR1FXClmx0l+Jyhp/HaevLxaLD732PMd/eRBcIMByp/tB38+l3nfWLbhpA X-Received: by 10.58.202.10 with SMTP id ke10mr19542744vec.8.1397492712378; Mon, 14 Apr 2014 09:25:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.72 with SMTP id s66ls2778353qgs.85.gmail; Mon, 14 Apr 2014 09:25:12 -0700 (PDT) X-Received: by 10.221.28.202 with SMTP id rv10mr37440378vcb.10.1397492712197; Mon, 14 Apr 2014 09:25:12 -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 sw4si2831710vdc.12.2014.04.14.09.25.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:25:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id il7so7677345vcb.18 for ; Mon, 14 Apr 2014 09:25:12 -0700 (PDT) X-Received: by 10.220.105.4 with SMTP id r4mr2195741vco.27.1397492712058; Mon, 14 Apr 2014 09:25:12 -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.221.72 with SMTP id ib8csp162722vcb; Mon, 14 Apr 2014 09:25:11 -0700 (PDT) X-Received: by 10.66.249.233 with SMTP id yx9mr45027384pac.3.1397492710673; Mon, 14 Apr 2014 09:25:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si9150226paw.45.2014.04.14.09.25.09; Mon, 14 Apr 2014 09:25:10 -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 S1755322AbaDNQYi (ORCPT + 26 others); Mon, 14 Apr 2014 12:24:38 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:56046 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755298AbaDNQYf (ORCPT ); Mon, 14 Apr 2014 12:24:35 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so8403774pbb.19 for ; Mon, 14 Apr 2014 09:24:34 -0700 (PDT) X-Received: by 10.68.191.138 with SMTP id gy10mr2437323pbc.169.1397492674791; Mon, 14 Apr 2014 09:24:34 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id xr9sm82520738pab.5.2014.04.14.09.24.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:24:34 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Arvind.Chauhan@arm.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 04/38] tick: move declaration of tick_cpu_device to tick.h Date: Mon, 14 Apr 2014 21:53:26 +0530 Message-Id: <314f70ec3e43446909d2429af99e66b82d200685.1397492345.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.173 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: , tick_cpu_device isn't local only to kernel/time/ directory and its declaration is present in hrtimer.h and tick-internal.h. Rather move it to a common place, i.e. tick.h. Signed-off-by: Viresh Kumar --- include/linux/hrtimer.h | 3 --- include/linux/tick.h | 2 ++ kernel/time/tick-internal.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index e7a8d3f..a31f83e 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -332,9 +332,6 @@ extern ktime_t ktime_get_clocktai(void); extern ktime_t ktime_get_update_offsets(ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai); -DECLARE_PER_CPU(struct tick_device, tick_cpu_device); - - /* Exported timer functions: */ /* Initialize timers: */ diff --git a/include/linux/tick.h b/include/linux/tick.h index edabc7d..1a9908a 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -85,6 +85,8 @@ struct tick_sched { extern void __init tick_init(void); extern int tick_is_oneshot_available(void); + +DECLARE_PER_CPU(struct tick_device, tick_cpu_device); extern struct tick_device *tick_get_device(int cpu); # ifdef CONFIG_HIGH_RES_TIMERS diff --git a/kernel/time/tick-internal.h b/kernel/time/tick-internal.h index 855c513..57c1a76 100644 --- a/kernel/time/tick-internal.h +++ b/kernel/time/tick-internal.h @@ -13,7 +13,6 @@ extern seqlock_t jiffies_lock; #define TICK_DO_TIMER_NONE -1 #define TICK_DO_TIMER_BOOT -2 -DECLARE_PER_CPU(struct tick_device, tick_cpu_device); extern ktime_t tick_next_period; extern ktime_t tick_period; extern int tick_do_timer_cpu __read_mostly;