mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
bea3214176
sched.h, which defines task_struct, needs nodemask_t - but sched.h is a frequently used header and ideally shouldn't be pulling in any more code that it needs to. This splits out nodemask_types.h which has the definition sched.h needs, which will avoid a circular header dependency in the alloc tagging patch series, and as a bonus should speed up kernel build times. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Suren Baghdasaryan <surenb@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org>
10 lines
263 B
C
10 lines
263 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_NODEMASK_TYPES_H
|
|
#define __LINUX_NODEMASK_TYPES_H
|
|
|
|
#include <linux/bitops.h>
|
|
#include <linux/numa.h>
|
|
|
|
typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
|
|
|
|
#endif /* __LINUX_NODEMASK_TYPES_H */
|