Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions net/bpf/test_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ static void bpf_test_timer_enter(struct bpf_test_timer *t)
__acquires(rcu)
{
rcu_read_lock();
if (t->mode == NO_PREEMPT)
preempt_disable();
else
migrate_disable();
migrate_disable();

t->time_start = ktime_get_ns();
}
Expand All @@ -51,10 +48,7 @@ static void bpf_test_timer_leave(struct bpf_test_timer *t)
{
t->time_start = 0;

if (t->mode == NO_PREEMPT)
preempt_enable();
else
migrate_enable();
migrate_enable();
rcu_read_unlock();
}

Expand Down
Loading