NETTA2: remove empty CONFIG_SHOW_ACTIVITY functions
PATCH 1/3 NETTA2: remove empty CONFIG_SHOW_ACTIVITY functions
Signed-off-by Wolfgang Denk <[email protected]>
--- board/netta2/netta2.c | 14 -------------- include/configs/NETTA2.h | 1 - 2 files changed, 0 insertions(+), 15 deletions(-)
board/netta2/netta2.c +0 -14
@@ -620,20 +620,6 @@ void hw_watchdog_reset(void)#endif -#ifdef CONFIG_SHOW_ACTIVITY - -/* called from timer interrupt every 1/CFG_HZ sec */ -void board_show_activity (ulong timestamp) -{ -} - -/* called when looping */ -void show_activity (int arg) -{ -} - -#endif -#if defined(CFG_CONSOLE_IS_IN_ENV ) && defined(CFG_CONSOLE_OVERWRITE_ROUTINE )int overwrite_console (void ) {
include/configs/NETTA2.h +0 -1
@@ -745,7 +745,6 @@ typedef unsigned int led_id_t;/* use board specific hardware */ #undef CONFIG_WATCHDOG/* watchdog disabled */ #define CONFIG_HW_WATCHDOG -#define CONFIG_SHOW_ACTIVITY /*************************************************************************************************/
Signature · 1 line
1.5.6.1
PATCH 2/3 stxxtc: remove empty CONFIG_SHOW_ACTIVITY functions
Signed-off-by Wolfgang Denk <[email protected]>
--- board/stxxtc/stxxtc.c | 14 -------------- include/configs/stxxtc.h | 1 - 2 files changed, 0 insertions(+), 15 deletions(-)
board/stxxtc/stxxtc.c +0 -14
@@ -599,20 +599,6 @@ void hw_watchdog_reset(void)#endif -#ifdef CONFIG_SHOW_ACTIVITY - -/* called from timer interrupt every 1/CFG_HZ sec */ -void board_show_activity (ulong timestamp) -{ -} - -/* called when looping */ -void show_activity (int arg) -{ -} - -#endif -#if defined(CFG_CONSOLE_IS_IN_ENV ) && defined(CFG_CONSOLE_OVERWRITE_ROUTINE )int overwrite_console (void ) {
include/configs/stxxtc.h +0 -1
@@ -580,7 +580,6 @@ typedef unsigned int led_id_t;/* use board specific hardware */ #undef CONFIG_WATCHDOG/* watchdog disabled */ #define CONFIG_HW_WATCHDOG -#define CONFIG_SHOW_ACTIVITY /*****************************************************************************/
Signature · 1 line
1.5.6.1
PATCH 3/3 lib_ppc/interrupts.c: make board_show_activity() a weak function
This allows to use show_activity() without having to define an empty board_show_activity() function.
Signed-off-by Wolfgang Denk <[email protected]>
--- lib_ppc/interrupts.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
lib_ppc/interrupts.c +6 -1
@@ -32,7 +32,12 @@#endif #ifdef CONFIG_SHOW_ACTIVITY -extern void board_show_activity (ulong ); +void board_show_activity (ulong ) __attribute__((weak,alias ("__board_show_activity" ))); + +void __board_show_activity (ulong dummy) +{ +return ; +}#endif /* CONFIG_SHOW_ACTIVITY */ #ifndef CFG_WATCHDOG_FREQ
Signature · 1 line
1.5.6.1