From patchwork Thu Apr 4 16:36:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2393981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 1DD433FD8C for ; Thu, 4 Apr 2013 16:39:12 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnBv-0001il-9L for patchwork-linux-arm@patchwork.kernel.org; Thu, 04 Apr 2013 16:39:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnAz-0002ru-Uo; Thu, 04 Apr 2013 16:38:13 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnAm-0002qR-Eq for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2013 16:38:01 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MKQ005TMOVBDM60@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2013 01:37:59 +0900 (KST) X-AuditID: cbfee61a-b7fa86d0000045ae-17-515dac67b6a4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 69.58.17838.76CAD515; Fri, 05 Apr 2013 01:37:59 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKQ00F2OOU1P170@mmp1.samsung.com>; Fri, 05 Apr 2013 01:37:58 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 02/14] clocksource: samsung-time: Drop useless defines from public header Date: Thu, 04 Apr 2013 18:36:59 +0200 Message-id: <1365093431-30621-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1365093431-30621-1-git-send-email-t.figa@samsung.com> References: <1365093431-30621-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRbUhTYRiGfbdzzo6j0WnTPCkUjIootMywlyzpA+rtT7UICsNq6XGKm8qm kmK01BUtNbVms9XS1UplJs2+XBkmGtjS+dX6NFNTkZkoM40d0+aqf9dz3ffD8+MhucIqLJhM SklnlClSuZjgY/b5ISpUZomVbMqboODv0tc82PhjHsB5wxsCfnIP8uDD6ikCNhkGcNhaEA0X Bl04tHc7AXz1wIzDt2woLKx4R8Cqx50YbM8d50HrkBOHesdLDvzcI4Dsk/MYrG3p40Hz+y4O 7DbmYnB2ZoaA9ss4NLobOLBO78JgvVXHhTW2ObAzBFmMFoDy8woIxHpKAWq40cdDX5wvCDTR 0cFDxjYJqr97Djn0lQCNlbAEKnpUA5BjXIehp04jF5W5HARyW1ci1wcDOETF8LfHM/KkTEa5 MfoUP1FT6eGkXQ06w378zlGDSZEWkCRNbaF1LKEF/l5cTnd+rfMynxRSJkBPjzr/DVoOXVtR yVtsEdRa2q0e9G0EUOvoa9ohn+dSl3Dadj1gkUXUCbpQV+vrYNQa2uZR+1hA7aZ7p3N5f6+t oof7i3zen9pDL7RPchZZ6O1cYJtBMRBUAL8aEMikxaWpTssU4WEqqUKVkSILi0tVWIHvfyPB z0C1GjYDigTiJYLEoliJEJdmqrIUzYAmueIAQWu+VwnipVnZjDL1pDJDzqiaQQiJiYMETZoo iZCSSdOZZIZJY5T/Uw7pH6wGpfUeQ8K2pTmWn7Zlc2MOUWN/8c2ohLYpuzNm2uK8whSuNk3k MOaeg7vOavoTvsVEHHDLy++0lZSR+iOaAe2OESceeVsdtmG0t55FxR1mlUGUfTTZuiKwJeLW vXLwa9hvX2RXSMzhatPe+5rjW5+bujVl7r79m2cnsy/ix6wmMaZKlIav5ypV0j8fYHBuuwIA AA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130404_123800_777614_7E021445 X-CRM114-Status: GOOD ( 10.37 ) X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] 1.7 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: mark.rutland@arm.com, heiko@sntech.de, Tomasz Figa , tomasz.figa@gmail.com, buserror@gmail.com, jacmet@sunsite.dk, augulis.darius@gmail.com, christer@weinigel.se, sylvester.nawrocki@gmail.com, m.szyprowski@samsung.com, kgene.kim@samsung.com, linux@arm.linux.org.uk, sameo@linux.intel.com, kwangwoo.lee@gmail.com, mcuelenaere@gmail.com, arnd@arndb.de, devicetree-discuss@lists.ozlabs.org, linux-samsung-soc@vger.kernel.org, john.stultz@linaro.org, ghcstop@gmail.com, linux@simtec.co.uk, broonie@opensource.wolfsonmicro.com, jekhor@gmail.com, kyungmin.park@samsung.com, tglx@linutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" 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 Signed-off-by: Kyungmin Park --- 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 4cc99bb..5d098ef 100644 --- a/arch/arm/plat-samsung/include/plat/samsung-time.h +++ b/arch/arm/plat-samsung/include/plat/samsung-time.h @@ -27,9 +27,6 @@ struct samsung_timer_source { unsigned int source_id; }; -/* Be able to sleep for atleast 4 seconds (usually more) */ -#define SAMSUNG_TIMER_MIN_RANGE 4 - #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S5PC100) #define TCNT_MAX 0xffff #define TSCALER_DIV 25 @@ -42,9 +39,6 @@ struct samsung_timer_source { #define TSIZE 32 #endif -#define NON_PERIODIC 0 -#define PERIODIC 1 - extern void __init samsung_set_timer_source(enum samsung_timer_mode event, enum samsung_timer_mode source); diff --git a/drivers/clocksource/samsung-time.c b/drivers/clocksource/samsung-time.c index f899cbc..d4d7e3e 100644 --- a/drivers/clocksource/samsung-time.c +++ b/drivers/clocksource/samsung-time.c @@ -182,7 +182,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; } @@ -195,7 +195,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: @@ -215,11 +215,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, @@ -335,7 +335,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, TSIZE, clock_rate);