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.
Unified · Split
| @@ -231,7 +231,7 @@ static inline int plist_node_empty(const struct plist_node *node) · 230 unmodified lines | ||
| 231 | 231 | * @type: the type of the struct this is embedded in |
| 232 | 232 | * @member: the name of the list_head within the struct |
| 233 | 233 | */ |
| 234 | −#ifdef CONFIG_DEBUG_PI_LIST | |
| 234 | +#ifdef CONFIG_DEBUG_PLIST | |
| 235 | 235 | # define plist_first_entry(head, type, member) \ |
| 236 | 236 | ({ \ |
| 237 | 237 | WARN_ON(plist_head_empty(head)); \ |
| @@ -248,7 +248,7 @@ static inline int plist_node_empty(const struct plist_node *node) · 10 unmodified lines | ||
| 248 | 248 | * @type: the type of the struct this is embedded in |
| 249 | 249 | * @member: the name of the list_head within the struct |
| 250 | 250 | */ |
| 251 | −#ifdef CONFIG_DEBUG_PI_LIST | |
| 251 | +#ifdef CONFIG_DEBUG_PLIST | |
| 252 | 252 | # define plist_last_entry(head, type, member) \ |
| 253 | 253 | ({ \ |
| 254 | 254 | WARN_ON(plist_head_empty(head)); \ |
| @@ -1372,7 +1372,7 @@ config DEBUG_LIST · 1371 unmodified lines | ||
| 1372 | 1372 | |
| 1373 | 1373 | If unsure, say N. |
| 1374 | 1374 | |
| 1375 | −config DEBUG_PI_LIST | |
| 1375 | +config DEBUG_PLIST | |
| 1376 | 1376 | bool "Debug priority linked list manipulation" |
| 1377 | 1377 | depends on DEBUG_KERNEL |
| 1378 | 1378 | help |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | #include <linux/bug.h> |
| 27 | 27 | #include <linux/plist.h> |
| 28 | 28 | |
| 29 | −#ifdef CONFIG_DEBUG_PI_LIST | |
| 29 | +#ifdef CONFIG_DEBUG_PLIST | |
| 30 | 30 | |
| 31 | 31 | static struct plist_head test_head; |
| 32 | 32 | |
| @@ -173,7 +173,7 @@ void plist_requeue(struct plist_node *node, struct plist_head *head) · 140 unmodified lines | ||
| 173 | 173 | plist_check_head(head); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | −#ifdef CONFIG_DEBUG_PI_LIST | |
| 176 | +#ifdef CONFIG_DEBUG_PLIST | |
| 177 | 177 | #include <linux/sched.h> |
| 178 | 178 | #include <linux/sched/clock.h> |
| 179 | 179 | #include <linux/module.h> |