You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/09 13:35:00 UTC

[incubator-nuttx] 02/03: sched: Rename sched_cpu_count to sched_cpucount

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ac53600e440e5f4796c5586ca3789f7d6e269569
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Feb 9 15:42:11 2020 +0800

    sched: Rename sched_cpu_count to sched_cpucount
---
 include/sched.h                  | 2 +-
 libs/libc/sched/sched_cpucount.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/sched.h b/include/sched.h
index 06dc6db..a182dd6 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 635215f..c18576a 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;