History

sched: Add get_current_state()

Remove yet another few p->state accesses.

Peter Zijlstra committed 5 years ago

Commit d6c23bb1 parent 3ba9f934 files · +7 −5Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/sched.h+2−0
@@ -213,6 +213,8 @@ struct task_group; · 212 unmodified lines
213213
214214 #endif
215215
216+#define get_current_state() READ_ONCE(current->state)
217+
216218 /* Task command name length: */
217219 #define TASK_COMM_LEN 16
218220

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