Commit 8e18faea authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Linus Torvalds

lib/plist: rename DEBUG_PI_LIST to DEBUG_PLIST

This is a lot more appropriate than PI_LIST, which in the kernel one
would assume that it has to do with priority-inheritance; which is not
-- furthermore futexes make use of plists so this can be even more
confusing, albeit the debug nature of the config option.

Link: http://lkml.kernel.org/r/20190317185434.1626-1-dave@stgolabs.netSigned-off-by: default avatarDavidlohr Bueso <dbueso@suse.de>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cdc90a18
...@@ -231,7 +231,7 @@ static inline int plist_node_empty(const struct plist_node *node) ...@@ -231,7 +231,7 @@ static inline int plist_node_empty(const struct plist_node *node)
* @type: the type of the struct this is embedded in * @type: the type of the struct this is embedded in
* @member: the name of the list_head within the struct * @member: the name of the list_head within the struct
*/ */
#ifdef CONFIG_DEBUG_PI_LIST #ifdef CONFIG_DEBUG_PLIST
# define plist_first_entry(head, type, member) \ # define plist_first_entry(head, type, member) \
({ \ ({ \
WARN_ON(plist_head_empty(head)); \ WARN_ON(plist_head_empty(head)); \
...@@ -248,7 +248,7 @@ static inline int plist_node_empty(const struct plist_node *node) ...@@ -248,7 +248,7 @@ static inline int plist_node_empty(const struct plist_node *node)
* @type: the type of the struct this is embedded in * @type: the type of the struct this is embedded in
* @member: the name of the list_head within the struct * @member: the name of the list_head within the struct
*/ */
#ifdef CONFIG_DEBUG_PI_LIST #ifdef CONFIG_DEBUG_PLIST
# define plist_last_entry(head, type, member) \ # define plist_last_entry(head, type, member) \
({ \ ({ \
WARN_ON(plist_head_empty(head)); \ WARN_ON(plist_head_empty(head)); \
......
...@@ -1372,7 +1372,7 @@ config DEBUG_LIST ...@@ -1372,7 +1372,7 @@ config DEBUG_LIST
If unsure, say N. If unsure, say N.
config DEBUG_PI_LIST config DEBUG_PLIST
bool "Debug priority linked list manipulation" bool "Debug priority linked list manipulation"
depends on DEBUG_KERNEL depends on DEBUG_KERNEL
help help
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/plist.h> #include <linux/plist.h>
#ifdef CONFIG_DEBUG_PI_LIST #ifdef CONFIG_DEBUG_PLIST
static struct plist_head test_head; static struct plist_head test_head;
...@@ -173,7 +173,7 @@ void plist_requeue(struct plist_node *node, struct plist_head *head) ...@@ -173,7 +173,7 @@ void plist_requeue(struct plist_node *node, struct plist_head *head)
plist_check_head(head); plist_check_head(head);
} }
#ifdef CONFIG_DEBUG_PI_LIST #ifdef CONFIG_DEBUG_PLIST
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/clock.h> #include <linux/sched/clock.h>
#include <linux/module.h> #include <linux/module.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment