mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
sched: Correct word spelling mistakes.
This commit fixed serveral word spelling mistakes. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
a255c99eb8
commit
3622e4830a
@@ -571,7 +571,7 @@ int clock_isleapyear(int year);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int clock_daysbeforemonth(int month, bool leapyear);
|
int clock_daysbeforemonth(int month, bool leap_year);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: clock_dayoftheweek
|
* Name: clock_dayoftheweek
|
||||||
|
|||||||
@@ -52,19 +52,19 @@ static const uint16_t g_daysbeforemonth[13] =
|
|||||||
* month.
|
* month.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* month - The month in the form of tm_mon, that is a range of 0-11.
|
* month - The month in the form of tm_mon, that is a range of 0-11.
|
||||||
* leapyear - True if leap year and there are 29 days in February.
|
* leap_year - True if leap year and there are 29 days in February.
|
||||||
* NOTE the month=1 is February.
|
* NOTE the month=1 is February.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* The number of days that occurred before the month
|
* The number of days that occurred before the month
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int clock_daysbeforemonth(int month, bool leapyear)
|
int clock_daysbeforemonth(int month, bool leap_year)
|
||||||
{
|
{
|
||||||
int retval = g_daysbeforemonth[month];
|
int retval = g_daysbeforemonth[month];
|
||||||
if (month >= 2 && leapyear)
|
if (month >= 2 && leap_year)
|
||||||
{
|
{
|
||||||
retval++;
|
retval++;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1179,7 +1179,7 @@ config SCHED_PROFILE_TICKSPERSEC
|
|||||||
int "Profile sampling rate"
|
int "Profile sampling rate"
|
||||||
default 1000
|
default 1000
|
||||||
---help---
|
---help---
|
||||||
This is the frequency at which the profil functon will sample the
|
This is the frequency at which the profil function will sample the
|
||||||
running program. The default is 1000Hz.
|
running program. The default is 1000Hz.
|
||||||
|
|
||||||
menuconfig SCHED_INSTRUMENTATION
|
menuconfig SCHED_INSTRUMENTATION
|
||||||
@@ -2000,11 +2000,11 @@ config SCHED_EVENTS
|
|||||||
events to event objects.
|
events to event objects.
|
||||||
|
|
||||||
config ASSERT_PAUSE_CPU_TIMEOUT
|
config ASSERT_PAUSE_CPU_TIMEOUT
|
||||||
int "Timeout in milisecond to pause another CPU when assert"
|
int "Timeout in millisecond to pause another CPU when assert"
|
||||||
default 2000
|
default 2000
|
||||||
depends on SMP
|
depends on SMP
|
||||||
---help---
|
---help---
|
||||||
Timeout in milisecond to pause another CPU when assert. Only available
|
Timeout in millisecond to pause another CPU when assert. Only available
|
||||||
when SMP is enabled.
|
when SMP is enabled.
|
||||||
Enable to support perf events.
|
Enable to support perf events.
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ static int group_continue_handler(pid_t pid, FAR void *arg)
|
|||||||
rtcb = nxsched_get_tcb(pid);
|
rtcb = nxsched_get_tcb(pid);
|
||||||
if (rtcb != NULL)
|
if (rtcb != NULL)
|
||||||
{
|
{
|
||||||
/* Remove the task from waitting list */
|
/* Remove the task from waiting list */
|
||||||
|
|
||||||
nxsched_remove_blocked(rtcb);
|
nxsched_remove_blocked(rtcb);
|
||||||
|
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ static clock_t nxsched_timer_start(clock_t ticks, clock_t interval)
|
|||||||
/* Normally, timer event cannot triggered on exact time
|
/* Normally, timer event cannot triggered on exact time
|
||||||
* due to the existence of interrupt latency.
|
* due to the existence of interrupt latency.
|
||||||
* Assuming that the interrupt latency is distributed within
|
* Assuming that the interrupt latency is distributed within
|
||||||
* [Best-Case Execution Time, Worst-Case Excution Time],
|
* [Best-Case Execution Time, Worst-Case Execution Time],
|
||||||
* we can set the timer adjustment value to the BCET to
|
* we can set the timer adjustment value to the BCET to
|
||||||
* reduce the latency.
|
* reduce the latency.
|
||||||
* After the adjustment, the timer interrupt latency will be
|
* After the adjustment, the timer interrupt latency will be
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ static void nxsig_timeout(wdparm_t arg)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the task from waitting list */
|
/* Remove the task from waiting list */
|
||||||
|
|
||||||
dq_rem((FAR dq_entry_t *)wtcb, list_waitingforsignal());
|
dq_rem((FAR dq_entry_t *)wtcb, list_waitingforsignal());
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ void nxsig_wait_irq(FAR struct tcb_s *wtcb, int errcode)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the task from waitting list */
|
/* Remove the task from waiting list */
|
||||||
|
|
||||||
dq_rem((FAR dq_entry_t *)wtcb, list_waitingforsignal());
|
dq_rem((FAR dq_entry_t *)wtcb, list_waitingforsignal());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user