diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-21 01:23:37 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-21 01:26:09 +0200 |
commit | 1ff3666dc29c0eacf911c57d3e6b6a62bdc9cb78 (patch) | |
tree | a1c7d98eb2a370975bd82c6d3dc16349636ddddf /kern/cpumap.h | |
parent | d115a8cee02be828d46651a5fc91fdbfe23985f2 (diff) |
New build system
The new build system, called xbuild, is a minimalistic kbuild-like
make-based build system, also using kconfig for scalable configurations.
Diffstat (limited to 'kern/cpumap.h')
-rw-r--r-- | kern/cpumap.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kern/cpumap.h b/kern/cpumap.h index fd07afc..89873b5 100644 --- a/kern/cpumap.h +++ b/kern/cpumap.h @@ -30,31 +30,31 @@ #include <kern/init.h> struct cpumap { - BITMAP_DECLARE(cpus, X15_MAX_CPUS); + BITMAP_DECLARE(cpus, CONFIG_MAX_CPUS); }; static inline void cpumap_zero(struct cpumap *cpumap) { - bitmap_zero(cpumap->cpus, X15_MAX_CPUS); + bitmap_zero(cpumap->cpus, CONFIG_MAX_CPUS); } static inline void cpumap_fill(struct cpumap *cpumap) { - bitmap_fill(cpumap->cpus, X15_MAX_CPUS); + bitmap_fill(cpumap->cpus, CONFIG_MAX_CPUS); } static inline void cpumap_copy(struct cpumap *dest, const struct cpumap *src) { - bitmap_copy(dest->cpus, src->cpus, X15_MAX_CPUS); + bitmap_copy(dest->cpus, src->cpus, CONFIG_MAX_CPUS); } static inline int cpumap_cmp(const struct cpumap *a, const struct cpumap *b) { - return bitmap_cmp(a->cpus, b->cpus, X15_MAX_CPUS); + return bitmap_cmp(a->cpus, b->cpus, CONFIG_MAX_CPUS); } static inline void @@ -90,50 +90,50 @@ cpumap_test(const struct cpumap *cpumap, int index) static inline void cpumap_and(struct cpumap *a, const struct cpumap *b) { - bitmap_and(a->cpus, b->cpus, X15_MAX_CPUS); + bitmap_and(a->cpus, b->cpus, CONFIG_MAX_CPUS); } static inline void cpumap_or(struct cpumap *a, const struct cpumap *b) { - bitmap_or(a->cpus, b->cpus, X15_MAX_CPUS); + bitmap_or(a->cpus, b->cpus, CONFIG_MAX_CPUS); } static inline void cpumap_xor(struct cpumap *a, const struct cpumap *b) { - bitmap_xor(a->cpus, b->cpus, X15_MAX_CPUS); + bitmap_xor(a->cpus, b->cpus, CONFIG_MAX_CPUS); } static inline int cpumap_find_next(const struct cpumap *cpumap, int index) { - return bitmap_find_next(cpumap->cpus, X15_MAX_CPUS, index); + return bitmap_find_next(cpumap->cpus, CONFIG_MAX_CPUS, index); } static inline int cpumap_find_first(const struct cpumap *cpumap) { - return bitmap_find_first(cpumap->cpus, X15_MAX_CPUS); + return bitmap_find_first(cpumap->cpus, CONFIG_MAX_CPUS); } static inline int cpumap_find_next_zero(const struct cpumap *cpumap, int index) { - return bitmap_find_next_zero(cpumap->cpus, X15_MAX_CPUS, index); + return bitmap_find_next_zero(cpumap->cpus, CONFIG_MAX_CPUS, index); } static inline int cpumap_find_first_zero(const struct cpumap *cpumap) { - return bitmap_find_first_zero(cpumap->cpus, X15_MAX_CPUS); + return bitmap_find_first_zero(cpumap->cpus, CONFIG_MAX_CPUS); } #define cpumap_for_each(cpumap, index) \ - bitmap_for_each((cpumap)->cpus, X15_MAX_CPUS, index) + bitmap_for_each((cpumap)->cpus, CONFIG_MAX_CPUS, index) #define cpumap_for_each_zero(cpumap, index) \ - bitmap_for_each_zero((cpumap)->cpus, X15_MAX_CPUS, index) + bitmap_for_each_zero((cpumap)->cpus, CONFIG_MAX_CPUS, index) /* * Return a cpumap representing all active processors. |