Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1434474ybk; Thu, 14 May 2020 08:55:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNRzN5xyI1scwtSX8fatlJUn09HJB5Ehx8YxkEnidEUMS7eiR1NITweBrcY4o9RCr5PxGa X-Received: by 2002:a50:fb09:: with SMTP id d9mr1395664edq.129.1589471759317; Thu, 14 May 2020 08:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589471759; cv=none; d=google.com; s=arc-20160816; b=YdZArcrJaZJWwgjlk8XKw7tkirdEg223jMofMnYXE8s+KJNY5eBIIDsye8LVY5TpjC IdndNhTiQlqlVmzgjNILi0e1ttGiQRq/7MUiY6zJ24EjaPsknJ3khtOSZVvFQn4mPrpU Hh1QwRh9Ee5eob2hgv5uvXPV221lMlkmgqmaVU6750R4u9JcLZAba9a4tdWxNKx1TlXm chk3/35uMV6k6U2LatocCcebswb8Xi+occSvDDigxvyqapkGnfHJD+QUuXkpijpjQF0P 5ay59ro4jV41Gx9sS+RfzkZLcajo7QPsJrWfGp1FAmhQcvXuyWaF01zN0m4kzX0l+ipv 1uDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=loOkN7VR0utdCoO10afFg9YFqd0qPWF5aEj3qXr6pO4=; b=Yuz/0GRed3jlmbaUX9buUlJ9pSOsWlCW8BBxnOQ+UDrZdkIfEkVmT++eV5xZHRPb8/ OouBEk+N6q5JwysHMbh3MueCbG45cOlv3vcBOI9Tr3R1vxeyajzt4RXVOvGnnaYIgGnV 16F0bcFEpFiIGvAQZetI/oB5+kUb5oVj0705jJFDIBKLWiIML/K92bl0R3Mq2GBPJMWS qsKRcoQ1QJlu07ILavHBscuwi6NJOjiDti24tHE3Mfz8x6AuStnRNfQchHhfnJ7Qfkih YhtBR9It0KckYkiQmqNT8uTx5u4mO1d7/pFDVeCLgz0WjFcqZZ5PQ8AuCr+r4vdI2CwX rT5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=isnKMIlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si2050670ejr.252.2020.05.14.08.55.32; Thu, 14 May 2020 08:55:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=isnKMIlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbgENPyH (ORCPT + 99 others); Thu, 14 May 2020 11:54:07 -0400 Received: from m15114.mail.126.com ([220.181.15.114]:50670 "EHLO m15114.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgENPyH (ORCPT ); Thu, 14 May 2020 11:54:07 -0400 X-Greylist: delayed 1901 seconds by postgrey-1.27 at vger.kernel.org; Thu, 14 May 2020 11:54:06 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=loOkN7VR0utdCoO10a fFg9YFqd0qPWF5aEj3qXr6pO4=; b=isnKMIlXy9yyH2wYUE/NeeCXFvUqWcr4Dv VruGSwZ7uk/v7k5kBHCwMV1UemAeigPfehx/Wgrx5SgcS7hpUXvrD2G4oQMAHp48 gKH8Jiegh5INBeBrWpK9gXa3vDkOBvoP2qknwb7uYzMuvsZg93AzhdP61Um3U8Jh LStIF/sG4= Received: from 192.168.137.228 (unknown [112.10.75.116]) by smtp7 (Coremail) with SMTP id DsmowADH5yPPYb1e4wrUEw--.20957S3; Thu, 14 May 2020 23:20:49 +0800 (CST) From: Xianting Tian To: tglx@linutronix.de, john.stultz@linaro.org, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] timers: Use set_current_state macro Date: Thu, 14 May 2020 11:20:47 -0400 Message-Id: <1589469647-33814-1-git-send-email-xianting_tian@126.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: DsmowADH5yPPYb1e4wrUEw--.20957S3 X-Coremail-Antispam: 1Uf129KBjvdXoW5KF4fZrWfJF4fCw4kGFyDJrb_yoWxWrXEk3 97tF409r45JF9FgF4UC3yfury0gr13GF1kAw4UuF43Aw4qy3y5twnYqFn8CFn3Wr98WFy5 Zan8J34DKr1rtjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8kpnPUUUUU== X-Originating-IP: [112.10.75.116] X-CM-SenderInfo: h0ld03plqjs3xldqqiyswou0bp/1tbiwQEkpFpD+ZN0LAAAsr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use set_current_state macro instead of current->state = TASK_RUNNING Signed-off-by: Xianting Tian --- 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