Skip to content

Commit 5cf8da7

Browse files
author
Michal Simek
committed
microblaze: Remove architecture heart beat code
There is no reason to keep this gpio based code in architecture. Use ledtrig-heartbeat.c instead which is much more flexible then this ancient code. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 71ab911 commit 5cf8da7

5 files changed

Lines changed: 0 additions & 91 deletions

File tree

‎arch/microblaze/Kconfig.debug‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@ config TRACE_IRQFLAGS_SUPPORT
88

99
source "lib/Kconfig.debug"
1010

11-
config HEART_BEAT
12-
bool "Heart beat function for kernel"
13-
default n
14-
help
15-
This option turns on/off heart beat kernel functionality.
16-
First GPIO node is taken.
17-
1811
endmenu

‎arch/microblaze/include/asm/setup.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ extern char cmd_line[COMMAND_LINE_SIZE];
1919

2020
extern char *klimit;
2121

22-
void microblaze_heartbeat(void);
23-
void microblaze_setup_heartbeat(void);
24-
2522
# ifdef CONFIG_MMU
2623
extern void mmu_reset(void);
2724
# endif /* CONFIG_MMU */

‎arch/microblaze/kernel/Makefile‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ifdef CONFIG_FUNCTION_TRACER
88
CFLAGS_REMOVE_timer.o = -pg
99
CFLAGS_REMOVE_intc.o = -pg
1010
CFLAGS_REMOVE_early_printk.o = -pg
11-
CFLAGS_REMOVE_heartbeat.o = -pg
1211
CFLAGS_REMOVE_ftrace.o = -pg
1312
CFLAGS_REMOVE_process.o = -pg
1413
endif
@@ -22,7 +21,6 @@ obj-y += dma.o exceptions.o \
2221

2322
obj-y += cpu/
2423

25-
obj-$(CONFIG_HEART_BEAT) += heartbeat.o
2624
obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o
2725
obj-$(CONFIG_MMU) += misc.o
2826
obj-$(CONFIG_STACKTRACE) += stacktrace.o

‎arch/microblaze/kernel/heartbeat.c‎

Lines changed: 0 additions & 72 deletions
This file was deleted.

‎arch/microblaze/kernel/timer.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ static inline void timer_ack(void)
156156
static irqreturn_t timer_interrupt(int irq, void *dev_id)
157157
{
158158
struct clock_event_device *evt = &clockevent_xilinx_timer;
159-
#ifdef CONFIG_HEART_BEAT
160-
microblaze_heartbeat();
161-
#endif
162159
timer_ack();
163160
evt->event_handler(evt);
164161
return IRQ_HANDLED;
@@ -318,10 +315,6 @@ static int __init xilinx_timer_init(struct device_node *timer)
318315
return ret;
319316
}
320317

321-
#ifdef CONFIG_HEART_BEAT
322-
microblaze_setup_heartbeat();
323-
#endif
324-
325318
ret = xilinx_clocksource_init();
326319
if (ret)
327320
return ret;

0 commit comments

Comments
 (0)