mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
samus_pd: disable timerinfo command to save space
Disable the timerinfo command on samus_pd to save flash space BUG=none BRANCH=samus TEST=make -j buildall From .map file, 256 bytes saved Change-Id: I6731967741cb28268499126f1753916319a1dcb4 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264939 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
e9883124ff
commit
a90f4dd25e
@@ -28,6 +28,7 @@
|
||||
#define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA
|
||||
#undef CONFIG_CMD_IDLE_STATS
|
||||
#undef CONFIG_CMD_SHMEM
|
||||
#undef CONFIG_CMD_TIMERINFO
|
||||
#define CONFIG_COMMON_GPIO_SHORTNAMES
|
||||
#undef CONFIG_CONSOLE_CMDHELP
|
||||
#undef CONFIG_CONSOLE_HISTORY
|
||||
|
||||
@@ -192,6 +192,7 @@ void force_time(timestamp_t ts)
|
||||
task_trigger_irq(timer_irq);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_TIMERINFO
|
||||
void timer_print_info(void)
|
||||
{
|
||||
uint64_t t = get_time().val;
|
||||
@@ -214,6 +215,9 @@ void timer_print_info(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
void timer_print_info(void) { }
|
||||
#endif
|
||||
|
||||
void timer_init(void)
|
||||
{
|
||||
@@ -304,6 +308,7 @@ DECLARE_CONSOLE_COMMAND(gettime, command_get_time,
|
||||
"Print current time",
|
||||
NULL);
|
||||
|
||||
#ifdef CONFIG_CMD_TIMERINFO
|
||||
int command_timer_info(int argc, char **argv)
|
||||
{
|
||||
timer_print_info();
|
||||
@@ -314,3 +319,4 @@ DECLARE_CONSOLE_COMMAND(timerinfo, command_timer_info,
|
||||
NULL,
|
||||
"Print timer info",
|
||||
NULL);
|
||||
#endif
|
||||
|
||||
@@ -379,6 +379,7 @@
|
||||
#undef CONFIG_CMD_SPI_FLASH
|
||||
#undef CONFIG_CMD_STACKOVERFLOW
|
||||
#undef CONFIG_CMD_TASKREADY
|
||||
#define CONFIG_CMD_TIMERINFO
|
||||
#define CONFIG_CMD_TYPEC
|
||||
#undef CONFIG_CMD_USB_PD_PE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user