Skip to content

Commit

Permalink
Revert "clockevents: Add a clkevt-of mechanism like clksrc-of"
Browse files Browse the repository at this point in the history
After discussing it, this feature is dropped as it is not considered
adequate:

	https://patchwork.kernel.org/patch/9639317/

There is no user of this macro yet, so there is no impact on the drivers.

This reverts commit 376bc27.

Cc: Mark Rutland <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
  • Loading branch information
dlezcano committed Jun 12, 2017
1 parent ef89718 commit 8e09310
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 75 deletions.
7 changes: 0 additions & 7 deletions drivers/clocksource/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ config CLKSRC_OF
bool
select CLKSRC_PROBE

config CLKEVT_OF
bool
select CLKEVT_PROBE

config CLKSRC_ACPI
bool
select CLKSRC_PROBE

config CLKSRC_PROBE
bool

config CLKEVT_PROBE
bool

config CLKSRC_I8253
bool

Expand Down
1 change: 0 additions & 1 deletion drivers/clocksource/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
obj-$(CONFIG_CLKSRC_PROBE) += clksrc-probe.o
obj-$(CONFIG_CLKEVT_PROBE) += clkevt-probe.o
obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o
obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o
obj-$(CONFIG_ATMEL_TCB_CLKSRC) += tcb_clksrc.o
Expand Down
56 changes: 0 additions & 56 deletions drivers/clocksource/clkevt-probe.c

This file was deleted.

2 changes: 0 additions & 2 deletions include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
KEEP(*(__##name##_of_table_end))

#define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc)
#define CLKEVT_OF_TABLES() OF_TABLE(CONFIG_CLKEVT_OF, clkevt)
#define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip)
#define CLK_OF_TABLES() OF_TABLE(CONFIG_COMMON_CLK, clk)
#define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu)
Expand Down Expand Up @@ -558,7 +557,6 @@
CLK_OF_TABLES() \
RESERVEDMEM_OF_TABLES() \
CLKSRC_OF_TABLES() \
CLKEVT_OF_TABLES() \
IOMMU_OF_TABLES() \
CPU_METHOD_OF_TABLES() \
CPUIDLE_METHOD_OF_TABLES() \
Expand Down
9 changes: 0 additions & 9 deletions include/linux/clockchips.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,4 @@ static inline void tick_setup_hrtimer_broadcast(void) { }

#endif /* !CONFIG_GENERIC_CLOCKEVENTS */

#define CLOCKEVENT_OF_DECLARE(name, compat, fn) \
OF_DECLARE_1_RET(clkevt, name, compat, fn)

#ifdef CONFIG_CLKEVT_PROBE
extern int clockevent_probe(void);
#else
static inline int clockevent_probe(void) { return 0; }
#endif

#endif /* _LINUX_CLOCKCHIPS_H */

0 comments on commit 8e09310

Please sign in to comment.