This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 81553deb53 time: add up_perf_init weak_function
81553deb53 is described below
commit 81553deb531f0d0d10736f51d27469d66ce7a015
Author: yinshengkai <[email protected]>
AuthorDate: Tue Apr 18 14:37:00 2023 +0800
time: add up_perf_init weak_function
Signed-off-by: yinshengkai <[email protected]>
---
drivers/timers/arch_alarm.c | 5 +++++
drivers/timers/arch_timer.c | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/drivers/timers/arch_alarm.c b/drivers/timers/arch_alarm.c
index 75a222c404..2c02430cd1 100644
--- a/drivers/timers/arch_alarm.c
+++ b/drivers/timers/arch_alarm.c
@@ -356,6 +356,11 @@ int weak_function up_alarm_tick_start(clock_t ticks)
* units.
****************************************************************************/
+void weak_function up_perf_init(FAR void *arg)
+{
+ UNUSED(arg);
+}
+
unsigned long weak_function up_perf_gettime(void)
{
unsigned long ret = 0;
diff --git a/drivers/timers/arch_timer.c b/drivers/timers/arch_timer.c
index ddbd0f31f2..c512bb14e2 100644
--- a/drivers/timers/arch_timer.c
+++ b/drivers/timers/arch_timer.c
@@ -395,6 +395,11 @@ int weak_function up_timer_tick_start(clock_t ticks)
* units.
****************************************************************************/
+void weak_function up_perf_init(FAR void *arg)
+{
+ UNUSED(arg);
+}
+
unsigned long weak_function up_perf_gettime(void)
{
unsigned long ret = 0;