RE: max sleep and tickless with no alarm

2020-09-03 Thread Xiang Xiao
Yes, it's better to auto select SCHED_TICKLESS_LIMIT_MAX_SLEEP under config TIMER_ARCH/ALARM_ARCH. > -Original Message- > From: Matias N. > Sent: Friday, September 4, 2020 12:09 AM > To: dev@nuttx.apache.org > Subject: Re: max sleep and tickless with no alarm >

Re: max sleep and tickless with no alarm

2020-09-03 Thread Matias N.
Actually, I see this in arch_timer.c/arch_alarm.c: # ifndef CONFIG_SCHED_TICKLESS_LIMIT_MAX_SLEEP #error CONFIG_SCHED_TICKLESS_LIMIT_MAX_SLEEP must be set to use CONFIG_SCHED_TICKLESS # endif So I think this is somehow being enforced but it is in a really awkward place. I will open an iss

max sleep and tickless with no alarm

2020-09-02 Thread Matias N.
Hi, question related to other e-mail. Looking at how tickless is handled when SCHED_TICKLESS_ALARM is not defined it seems strange that not specifying maximum is even possible as it cannot be expected that up_timer_start() will succeed for arbitrarily long timeouts. In fact, up_timer_start() may