clocksource: Remove unused dw_apb_clockevent functions
PATCH 1/1 clocksource: Remove unused dw_apb_clockevent functions
From: "Dr. David Alan Gilbert" <[email protected]>
dw_apb_clockevent_pause(), dw_apb_clockevent_resume() and dw_apb_clockevent_stop() have been unused since 2021's commit 1b79fc4f2bfd ("x86/apb_timer: Remove driver for deprecated platform")
Remove them.
(Some of the other clockevent functions are still called by dw_apb_timer_of.c so I guess it is still in use?)
--- drivers/clocksource/dw_apb_timer.c | 39 ------------------------------ include/linux/dw_apb_timer.h | 3 --- 2 files changed, 42 deletions(-)
drivers/clocksource/dw_apb_timer.c +0 -39
@@ -68,25 +68,6 @@ static inline void apbt_writel_relaxed(struct dw_apb_timer *timer, u32 val,writel_relaxed (val, timer->base + offs); } -static void apbt_disable_int (struct dw_apb_timer *timer) -{ -u32 ctrl =apbt_readl (timer,APBTMR_N_CONTROL ); - - ctrl |=APBTMR_CONTROL_INT ; -apbt_writel (timer, ctrl,APBTMR_N_CONTROL ); -} - -/** -* dw_apb_clockevent_pause() - stop the clock_event_device from running -* -* @dw_ced: The APB clock to stop generating events. -*/ -void dw_apb_clockevent_pause (struct dw_apb_clock_event_device *dw_ced) -{ -disable_irq (dw_ced->timer.irq); -apbt_disable_int (&dw_ced->timer); -} -static void apbt_eoi (struct dw_apb_timer *timer) {apbt_readl_relaxed (timer,APBTMR_N_EOI );
@@ -284,26 +265,6 @@ dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,return dw_ced; } -/** -* dw_apb_clockevent_resume() - resume a clock that has been paused. -* -* @dw_ced: The APB clock to resume. -*/ -void dw_apb_clockevent_resume (struct dw_apb_clock_event_device *dw_ced) -{ -enable_irq (dw_ced->timer.irq); -} - -/** -* dw_apb_clockevent_stop() - stop the clock_event_device and release the IRQ. -* -* @dw_ced: The APB clock to stop generating the events. -*/ -void dw_apb_clockevent_stop (struct dw_apb_clock_event_device *dw_ced) -{ -free_irq (dw_ced->timer.irq, &dw_ced->ced); -} -/** * dw_apb_clockevent_register() - register the clock with the generic layer *
include/linux/dw_apb_timer.h +0 -3
@@ -34,9 +34,6 @@ struct dw_apb_clocksource { };void dw_apb_clockevent_register (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_pause (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_resume (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_stop (struct dw_apb_clock_event_device *dw_ced);struct dw_apb_clock_event_device * dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,
Signature · 1 line
2.47.0
Daniel Lezcano
AppliedQuoted 7 lines · On 25/10/2024 22:31, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
dw_apb_clockevent_pause(),dw_apb_clockevent_resume()anddw_apb_clockevent_stop()have been unused since 2021's commit1b79fc4f2bfd("x86/apb_timer: Remove driver for deprecated platform")
Quoted 7 lines
Remove them.
(Some of the other clockevent functions are still called by
dw_apb_timer_of.cso I guess it is still in use?)Signed-off-by Dr. David Alan Gilbert <[email protected]>---
Applied, thanks for the cleanup
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
[tip: timers/core] clocksource/drivers/dw_apb: Remove unused dw_apb_clockevent functions
In reply to [email protected]The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 1d58f7f3a1373734b2e86a246edcf1cd39359f3e Gitweb: https://git.kernel.org/tip/1d58f7f3a1373734b2e86a246edcf1cd39359f3e Author: Dr. David Alan Gilbert <[email protected]> AuthorDate: Fri, 25 Oct 2024 21:31:01 +01:00 Committer: Daniel Lezcano <[email protected]> CommitterDate: Wed, 13 Nov 2024 13:49:33 +01:00
clocksource/drivers/dw_apb: Remove unused dw_apb_clockevent functions
dw_apb_clockevent_pause(), dw_apb_clockevent_resume() and dw_apb_clockevent_stop() have been unused since 2021's commit 1b79fc4f2bfd ("x86/apb_timer: Remove driver for deprecated platform")
Remove them.
(Some of the other clockevent functions are still called by dw_apb_timer_of.c so I guess it is still in use?)
--- drivers/clocksource/dw_apb_timer.c | 39 +----------------------------- include/linux/dw_apb_timer.h | 3 +-- 2 files changed, 42 deletions(-)
drivers/clocksource/dw_apb_timer.c +0 -39
@@ -68,25 +68,6 @@ static inline void apbt_writel_relaxed(struct dw_apb_timer *timer, u32 val,writel_relaxed (val, timer->base + offs); } -static void apbt_disable_int (struct dw_apb_timer *timer) -{ -u32 ctrl =apbt_readl (timer,APBTMR_N_CONTROL ); - - ctrl |=APBTMR_CONTROL_INT ; -apbt_writel (timer, ctrl,APBTMR_N_CONTROL ); -} - -/** -* dw_apb_clockevent_pause() - stop the clock_event_device from running -* -* @dw_ced: The APB clock to stop generating events. -*/ -void dw_apb_clockevent_pause (struct dw_apb_clock_event_device *dw_ced) -{ -disable_irq (dw_ced->timer.irq); -apbt_disable_int (&dw_ced->timer); -} -static void apbt_eoi (struct dw_apb_timer *timer) {apbt_readl_relaxed (timer,APBTMR_N_EOI );
@@ -285,26 +266,6 @@ dw_apb_clockevent_init(int cpu, const char *name, unsigned rating, }/** -* dw_apb_clockevent_resume() - resume a clock that has been paused. -* -* @dw_ced: The APB clock to resume. -*/ -void dw_apb_clockevent_resume (struct dw_apb_clock_event_device *dw_ced) -{ -enable_irq (dw_ced->timer.irq); -} - -/** -* dw_apb_clockevent_stop() - stop the clock_event_device and release the IRQ. -* -* @dw_ced: The APB clock to stop generating the events. -*/ -void dw_apb_clockevent_stop (struct dw_apb_clock_event_device *dw_ced) -{ -free_irq (dw_ced->timer.irq, &dw_ced->ced); -} - -/** * dw_apb_clockevent_register() - register the clock with the generic layer * * @dw_ced: The APB clock to register as a clock_event_device.
include/linux/dw_apb_timer.h +0 -3
@@ -34,9 +34,6 @@ struct dw_apb_clocksource { };void dw_apb_clockevent_register (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_pause (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_resume (struct dw_apb_clock_event_device *dw_ced); -void dw_apb_clockevent_stop (struct dw_apb_clock_event_device *dw_ced);struct dw_apb_clock_event_device * dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,