Skip to content

Commit 015dce5

Browse files
committed
adjust critical section for daemon sleep functions
1 parent ce9ef03 commit 015dce5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ static void printkd_sleep(void)
128128
{
129129
preempt_disable();
130130
prepare_to_wait(&printkd_wait, current_thread_info(), THREAD_WAIT);
131-
jump_to_kernel();
132131
preempt_enable();
132+
jump_to_kernel();
133133
}
134134

135135
void printkd(void)

kernel/softirq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ static void softirqd_sleep(void)
3535
{
3636
preempt_disable();
3737
prepare_to_wait(&softirqd_wait, current_thread_info(), THREAD_WAIT);
38-
jump_to_kernel();
3938
preempt_enable();
39+
jump_to_kernel();
4040
}
4141

4242
void softirqd(void)

0 commit comments

Comments
 (0)