linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] timers: use set_current_state macro
@ 2020-05-08  2:02 Xianting Tian
  2020-05-13 21:22 ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Xianting Tian @ 2020-05-08  2:02 UTC (permalink / raw)
  To: john.stultz, tglx, sboyd; +Cc: linux-kernel, tian.xianting

Use set_current_state macro instead of current->state = TASK_RUNNING.

Signed-off-by: Xianting Tian <tian.xianting@h3c.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!

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH] timers: Use set_current_state macro
@ 2020-05-14 15:20 Xianting Tian
  2020-05-19  8:36 ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Xianting Tian @ 2020-05-14 15:20 UTC (permalink / raw)
  To: tglx, john.stultz, sboyd; +Cc: linux-kernel

Use set_current_state macro instead of current->state = TASK_RUNNING

Signed-off-by: Xianting Tian <xianting_tian@126.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 4820823..b9ecf87 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1882,7 +1882,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;
 		}
 	}
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-19  8:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08  2:02 [PATCH] timers: use set_current_state macro Xianting Tian
2020-05-13 21:22 ` Thomas Gleixner
2020-05-14  1:46   ` 答复: " Tianxianting
2020-05-15  1:15   ` Tianxianting
2020-05-14 15:20 [PATCH] timers: Use " Xianting Tian
2020-05-19  8:36 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).