Type of second __sched_cpucount should be "const cpu_set_t*".
Test: none Bug: 77341596 Change-Id: Ib4f1a75d2cfe147855b4d5f0203f4a64c22c116a
This commit is contained in:
parent
48227e6602
commit
37793a1892
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
#define _GNU_SOURCE 1
|
||||
#include <sched.h>
|
||||
|
||||
int __sched_cpucount(size_t setsize, cpu_set_t* set) {
|
||||
int __sched_cpucount(size_t setsize, const cpu_set_t* set) {
|
||||
int nn = 0;
|
||||
int nn_max = setsize / sizeof(__CPU_BITTYPE);
|
||||
int count = 0;
|
||||
|
|
|
@ -143,7 +143,7 @@ void __sched_cpufree(cpu_set_t* __set) __INTRODUCED_IN(12);
|
|||
|
||||
#define CPU_COUNT_S(setsize, set) __sched_cpucount((setsize), (set))
|
||||
|
||||
int __sched_cpucount(size_t __set_size, cpu_set_t* __set) __INTRODUCED_IN(12);
|
||||
int __sched_cpucount(size_t __set_size, const cpu_set_t* __set) __INTRODUCED_IN(12);
|
||||
|
||||
#endif /* __USE_GNU */
|
||||
|
||||
|
|
Loading…
Reference in a new issue