pkarashchenko commented on code in PR #10086:
URL: https://github.com/apache/nuttx/pull/10086#discussion_r1284726300


##########
include/sched.h:
##########
@@ -252,9 +252,10 @@ 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_cpucount(FAR const cpu_set_t *set);
-int    sched_getcpu(void);
 #endif /* CONFIG_SMP */
 
+int    sched_getcpu(void);

Review Comment:
   Why do we need to have this as a call in non-SMP case? I mean why we can't 
define `sched_getcpu` to zero in non-SMP case?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to