mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
plist: Split out plist_types.h
Trimming down sched.h dependencies: we don't want to include more than the base types. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
f551103cb9
commit
8b7787a543
@ -75,20 +75,10 @@
|
||||
|
||||
#include <linux/container_of.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/plist_types.h>
|
||||
|
||||
#include <asm/bug.h>
|
||||
|
||||
struct plist_head {
|
||||
struct list_head node_list;
|
||||
};
|
||||
|
||||
struct plist_node {
|
||||
int prio;
|
||||
struct list_head prio_list;
|
||||
struct list_head node_list;
|
||||
};
|
||||
|
||||
/**
|
||||
* PLIST_HEAD_INIT - static struct plist_head initializer
|
||||
* @head: struct plist_head variable name
|
||||
|
17
include/linux/plist_types.h
Normal file
17
include/linux/plist_types.h
Normal file
@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#ifndef _LINUX_PLIST_TYPES_H
|
||||
#define _LINUX_PLIST_TYPES_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct plist_head {
|
||||
struct list_head node_list;
|
||||
};
|
||||
|
||||
struct plist_node {
|
||||
int prio;
|
||||
struct list_head prio_list;
|
||||
struct list_head node_list;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_PLIST_TYPES_H */
|
@ -16,7 +16,7 @@
|
||||
#include <linux/shm.h>
|
||||
#include <linux/kmsan_types.h>
|
||||
#include <linux/mutex_types.h>
|
||||
#include <linux/plist.h>
|
||||
#include <linux/plist_types.h>
|
||||
#include <linux/hrtimer_types.h>
|
||||
#include <linux/irqflags.h>
|
||||
#include <linux/seccomp.h>
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <linux/audit.h>
|
||||
#include <linux/numa.h>
|
||||
#include <linux/scs.h>
|
||||
#include <linux/plist.h>
|
||||
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <linux/compat.h>
|
||||
#include <linux/jhash.h>
|
||||
#include <linux/pagemap.h>
|
||||
#include <linux/plist.h>
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/fault-inject.h>
|
||||
#include <linux/slab.h>
|
||||
|
@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <linux/plist.h>
|
||||
#include <linux/sched/signal.h>
|
||||
|
||||
#include "futex.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <linux/plist.h>
|
||||
#include <linux/sched/task.h>
|
||||
#include <linux/sched/signal.h>
|
||||
#include <linux/freezer.h>
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include <linux/completion.h>
|
||||
#include <linux/suspend.h>
|
||||
#include <linux/zswap.h>
|
||||
#include <linux/plist.h>
|
||||
|
||||
#include <asm/tlbflush.h>
|
||||
#include <linux/swapops.h>
|
||||
|
Loading…
Reference in New Issue
Block a user