diff --git a/include/sched.h b/include/sched.h index 06dc6db5f8..a182dd66c1 100644 --- a/include/sched.h +++ b/include/sched.h @@ -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 */ diff --git a/libs/libc/sched/sched_cpucount.c b/libs/libc/sched/sched_cpucount.c index 635215f92d..c18576ab2c 100644 --- a/libs/libc/sched/sched_cpucount.c +++ b/libs/libc/sched/sched_cpucount.c @@ -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;