From patchwork Sat Feb 16 16:43:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2152021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 09A63E014A for ; Sat, 16 Feb 2013 16:48:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U6ktG-00023z-3Q; Sat, 16 Feb 2013 16:45:30 +0000 Received: from mail-ea0-f181.google.com ([209.85.215.181]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U6ksh-0001ut-33 for linux-arm-kernel@lists.infradead.org; Sat, 16 Feb 2013 16:44:57 +0000 Received: by mail-ea0-f181.google.com with SMTP id i13so1771326eaa.26 for ; Sat, 16 Feb 2013 08:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=DUG4GSY3G8erCfHC3OcOVQlSCd1/Xbcddt75U0uu4hI=; b=KOH+vgfZbn75TkuJ9t8CrNYIIo2+viqZCxTMAYe6BqSmkkZMGwm7rEsXLFWjgEDo71 vfqiMc6gidtXJKyQuk4NRrDJp/cXHoiUTWj3VtelwuGhfyRtx+S32tDhRdgWQw/t0aa0 lGDtHnIH5bGpEMZjI9EJ0T6xDR2Fqdfzl+lFGrrsHvevChxWF3PU+DFGqrdJDFxN2ZGN MOaJg3d3j86Vec7Bm2JwfaKGfefjI6kvoZ5mMAmuBR9aElbmxUo7JNTE3N0xuY91DPzZ cmsxQ99Q3YS/TwtvCS+iZslSy7SbAunyYQ9foIVsPbhQxcatgnT1YZejG8zMpMHJ4nHD Vn0g== X-Received: by 10.14.211.132 with SMTP id w4mr22163521eeo.36.1361033093159; Sat, 16 Feb 2013 08:44:53 -0800 (PST) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPS id f47sm43609113eep.13.2013.02.16.08.44.51 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 16 Feb 2013 08:44:52 -0800 (PST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 03/12] clocksource: samsung-time: Drop useless defines from public header Date: Sat, 16 Feb 2013 17:43:55 +0100 Message-Id: <1361033044-27629-4-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1361033044-27629-1-git-send-email-tomasz.figa@gmail.com> References: <1361033044-27629-1-git-send-email-tomasz.figa@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130216_114455_343427_AAB6DFA3 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.181 listed in list.dnswl.org] 3.0 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tomasz.figa[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: ghcstop@gmail.com, Mark Rutland , Kukjin Kim , linux@arm.linux.org.uk, kwangwoo.lee@gmail.com, broonie@opensource.wolfsonmicro.com, mcuelenaere@gmail.com, Tomasz Figa , christer@weinigel.se, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, buserror@gmail.com, augulis.darius@gmail.com, jacmet@sunsite.dk, Sylwester Nawrocki , linux@simtec.co.uk, jekhor@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch cleans up public header from useless definitions. Signed-off-by: Tomasz Figa --- arch/arm/plat-samsung/include/plat/samsung-time.h | 6 ------ drivers/clocksource/samsung-time.c | 10 +++++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/arm/plat-samsung/include/plat/samsung-time.h b/arch/arm/plat-samsung/include/plat/samsung-time.h index 45f0036..e352600 100644 --- a/arch/arm/plat-samsung/include/plat/samsung-time.h +++ b/arch/arm/plat-samsung/include/plat/samsung-time.h @@ -39,12 +39,6 @@ struct samsung_timer_variant { u16 divisor; }; -/* Be able to sleep for atleast 4 seconds (usually more) */ -#define SAMSUNG_TIMER_MIN_RANGE 4 - -#define NON_PERIODIC 0 -#define PERIODIC 1 - extern void __init samsung_set_timer_source(enum samsung_timer_mode event, enum samsung_timer_mode source); extern void __init samsung_timer_set_variant( diff --git a/drivers/clocksource/samsung-time.c b/drivers/clocksource/samsung-time.c index 3017203..a6af801 100644 --- a/drivers/clocksource/samsung-time.c +++ b/drivers/clocksource/samsung-time.c @@ -183,7 +183,7 @@ static int samsung_set_next_event(unsigned long cycles, struct clock_event_device *evt) { samsung_time_setup(timer_source.event_id, cycles); - samsung_time_start(timer_source.event_id, NON_PERIODIC); + samsung_time_start(timer_source.event_id, false); return 0; } @@ -196,7 +196,7 @@ static void samsung_set_mode(enum clock_event_mode mode, switch (mode) { case CLOCK_EVT_MODE_PERIODIC: samsung_time_setup(timer_source.event_id, clock_count_per_tick); - samsung_time_start(timer_source.event_id, PERIODIC); + samsung_time_start(timer_source.event_id, true); break; case CLOCK_EVT_MODE_ONESHOT: @@ -220,11 +220,11 @@ static void samsung_timer_resume(void) /* event timer restart */ samsung_time_setup(timer_source.event_id, clock_count_per_tick); - samsung_time_start(timer_source.event_id, PERIODIC); + samsung_time_start(timer_source.event_id, true); /* source timer restart */ samsung_time_setup(timer_source.source_id, tcnt_max); - samsung_time_start(timer_source.source_id, PERIODIC); + samsung_time_start(timer_source.source_id, true); } void __init samsung_set_timer_source(enum samsung_timer_mode event, @@ -350,7 +350,7 @@ static void __init samsung_clocksource_init(void) clock_rate = clk_get_rate(tin_source); samsung_time_setup(timer_source.source_id, tcnt_max); - samsung_time_start(timer_source.source_id, PERIODIC); + samsung_time_start(timer_source.source_id, true); setup_sched_clock(samsung_read_sched_clock, timer_variant.bits, clock_rate);