We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b382ef commit 45c28cdCopy full SHA for 45c28cd
kernel/trace/pid_list.c
@@ -81,13 +81,9 @@ static inline bool upper_empty(union upper_chunk *chunk)
81
{
82
/*
83
* If chunk->data has no lower chunks, it will be the same
84
- * as a zeroed bitmask. Use find_first_bit() to test it
85
- * and if it doesn't find any bits set, then the array
86
- * is empty.
+ * as a zeroed bitmask.
87
*/
88
- int bit = find_first_bit((unsigned long *)chunk->data,
89
- sizeof(chunk->data) * 8);
90
- return bit >= sizeof(chunk->data) * 8;
+ return bitmap_empty((unsigned long *)chunk->data, BITS_PER_TYPE(chunk->data));
91
}
92
93
static inline int pid_split(unsigned int pid, unsigned int *upper1,
0 commit comments