History

perf: Fix get_recursion_context()

One should use in_serving_softirq() to detect SoftIRQ context.

Peter Zijlstra committed 6 years ago

Commit ce0f17f1 parent 9dfa9a51 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/events/internal.h+1−1
@@ -211,7 +211,7 @@ static inline int get_recursion_context(int *recursion) · 210 unmodified lines
211211 rctx = 3;
212212 else if (in_irq())
213213 rctx = 2;
214− else if (in_softirq())
214+ else if (in_serving_softirq())
215215 rctx = 1;
216216 else
217217 rctx = 0;

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