|
6 | 6 | #ifndef _LINUX_WORKQUEUE_H
|
7 | 7 | #define _LINUX_WORKQUEUE_H
|
8 | 8 |
|
| 9 | +#include <linux/alloc_tag.h> |
9 | 10 | #include <linux/timer.h>
|
10 | 11 | #include <linux/linkage.h>
|
11 | 12 | #include <linux/bitops.h>
|
@@ -505,7 +506,8 @@ void workqueue_softirq_dead(unsigned int cpu);
|
505 | 506 | * Pointer to the allocated workqueue on success, %NULL on failure.
|
506 | 507 | */
|
507 | 508 | __printf(1, 4) struct workqueue_struct *
|
508 |
| -alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...); |
| 509 | +alloc_workqueue_noprof(const char *fmt, unsigned int flags, int max_active, ...); |
| 510 | +#define alloc_workqueue(...) alloc_hooks(alloc_workqueue_noprof(__VA_ARGS__)) |
509 | 511 |
|
510 | 512 | #ifdef CONFIG_LOCKDEP
|
511 | 513 | /**
|
@@ -544,8 +546,8 @@ alloc_workqueue_lockdep_map(const char *fmt, unsigned int flags, int max_active,
|
544 | 546 | * Pointer to the allocated workqueue on success, %NULL on failure.
|
545 | 547 | */
|
546 | 548 | #define alloc_ordered_workqueue_lockdep_map(fmt, flags, lockdep_map, args...) \
|
547 |
| - alloc_workqueue_lockdep_map(fmt, WQ_UNBOUND | __WQ_ORDERED | (flags), \ |
548 |
| - 1, lockdep_map, ##args) |
| 549 | + alloc_hooks(alloc_workqueue_lockdep_map(fmt, WQ_UNBOUND | __WQ_ORDERED | (flags),\ |
| 550 | + 1, lockdep_map, ##args)) |
549 | 551 | #endif
|
550 | 552 |
|
551 | 553 | /**
|
@@ -577,7 +579,9 @@ alloc_workqueue_lockdep_map(const char *fmt, unsigned int flags, int max_active,
|
577 | 579 |
|
578 | 580 | extern void destroy_workqueue(struct workqueue_struct *wq);
|
579 | 581 |
|
580 |
| -struct workqueue_attrs *alloc_workqueue_attrs(void); |
| 582 | +struct workqueue_attrs *alloc_workqueue_attrs_noprof(void); |
| 583 | +#define alloc_workqueue_attrs(...) alloc_hooks(alloc_workqueue_attrs_noprof(__VA_ARGS__)) |
| 584 | + |
581 | 585 | void free_workqueue_attrs(struct workqueue_attrs *attrs);
|
582 | 586 | int apply_workqueue_attrs(struct workqueue_struct *wq,
|
583 | 587 | const struct workqueue_attrs *attrs);
|
|
0 commit comments