[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200508020222.15791-1-tian.xianting@h3c.com>
Date: Fri, 8 May 2020 10:02:22 +0800
From: Xianting Tian <tian.xianting@....com>
To: <john.stultz@...aro.org>, <tglx@...utronix.de>, <sboyd@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <tian.xianting@....com>
Subject: [PATCH] timers: use set_current_state macro
Use set_current_state macro instead of current->state = TASK_RUNNING.
Signed-off-by: Xianting Tian <tian.xianting@....com>
---
kernel/time/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index a5221abb4..7c6d42755 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1885,7 +1885,7 @@ signed long __sched schedule_timeout(signed long timeout)
printk(KERN_ERR "schedule_timeout: wrong timeout "
"value %lx\n", timeout);
dump_stack();
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
goto out;
}
}
--
2.17.1
-------------------------------------------------------------------------------------------------------------------------------------
���ʼ����丽�������»������ŵı�����Ϣ�������ڷ��������ַ���г�
�ĸ��˻�Ⱥ�顣��ֹ�κ����������κ���ʽʹ�ã�������������ȫ���ֵ�й¶�����ơ�
��ɢ�������ʼ��е���Ϣ������������˱��ʼ������������绰���ʼ�֪ͨ�����˲�ɾ����
�ʼ���
This e-mail and its attachments contain confidential information from New H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
Powered by blists - more mailing lists