sched: Rename sched_cpu_count to sched_cpucount

This commit is contained in:
Xiang Xiao 2020-02-09 15:42:11 +08:00 committed by Gregory Nutt
parent c34a73e780
commit ac53600e44
2 changed files with 3 additions and 3 deletions

View File

@ -265,7 +265,7 @@ int sched_rr_get_interval(pid_t pid, FAR struct timespec *interval);
int sched_setaffinity(pid_t pid, size_t cpusetsize,
FAR const cpu_set_t *mask);
int sched_getaffinity(pid_t pid, size_t cpusetsize, FAR cpu_set_t *mask);
int sched_cpu_count(FAR const cpu_set_t *set);
int sched_cpucount(FAR const cpu_set_t *set);
int sched_getcpu(void);
#endif /* CONFIG_SMP */

View File

@ -48,7 +48,7 @@
****************************************************************************/
/****************************************************************************
* Name: sched_cpu_count
* Name: sched_cpucount
*
* Description:
* Return the number of bits set in the 'set'. This could be improved by
@ -62,7 +62,7 @@
*
****************************************************************************/
int sched_cpu_count(FAR const cpu_set_t *set)
int sched_cpucount(FAR const cpu_set_t *set)
{
int count;
int cpu;