History

Merge branch 'linus' into sched/core, to pick up fixes

Ingo Molnar committed 8 years ago

Commit fc4c5a32 parents 14a7405 1b88acc863 files · +7821 −4491Browse files

Showing the changes to kernel/workqueue.c (1 of 863 files). Show all

Unified · Split

kernel/workqueue.c+16−0
@@ -4179,6 +4179,22 @@ void workqueue_set_max_active(struct workqueue_struct *wq, int max_active) · 4178 unmodified lines
4179}4179}
4180EXPORT_SYMBOL_GPL(workqueue_set_max_active);4180EXPORT_SYMBOL_GPL(workqueue_set_max_active);
4181 4181
4182/**
4183 * current_work - retrieve %current task's work struct
4184 *
4185 * Determine if %current task is a workqueue worker and what it's working on.
4186 * Useful to find out the context that the %current task is running in.
4187 *
4188 * Return: work struct if %current task is a workqueue worker, %NULL otherwise.
4189 */
4190struct work_struct *current_work(void)
4191{
4192 struct worker *worker = current_wq_worker();
4193
4194 return worker ? worker->current_work : NULL;
4195}
4196EXPORT_SYMBOL(current_work);
4197
4182/**4198/**
4183 * current_is_workqueue_rescuer - is %current workqueue rescuer?4199 * current_is_workqueue_rescuer - is %current workqueue rescuer?
4184 *4200 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t