We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d9a0b5 commit 0ac7a2dCopy full SHA for 0ac7a2d
kernel/include/kernel/mp.h
@@ -49,12 +49,12 @@ struct mp_state {
49
50
extern struct mp_state mp;
51
52
-static inline int mp_is_cpu_active(uint cpu) {
53
- return mp.active_cpus & (1 << cpu);
+static inline bool mp_is_cpu_active(uint cpu) {
+ return mp.active_cpus & (1UL << cpu);
54
}
55
56
-static inline int mp_is_cpu_idle(uint cpu) {
57
- return mp.idle_cpus & (1 << cpu);
+static inline bool mp_is_cpu_idle(uint cpu) {
+ return mp.idle_cpus & (1UL << cpu);
58
59
60
/* must be called with the thread lock held */
0 commit comments