Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp237152ybt; Tue, 30 Jun 2020 19:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznT2C8s++6uwg4F0C0pSYext/FEgFDXaiNp+1p0E3TKSte7AjfCKNP4zEsXJJoXwK/XGQB X-Received: by 2002:a50:d0dc:: with SMTP id g28mr25540116edf.169.1593571258278; Tue, 30 Jun 2020 19:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593571258; cv=none; d=google.com; s=arc-20160816; b=ThxjBthobougSoD0HpykIco9u7jB++g2wLYwX4DmMk4diO8PJWDF/vZQqSwD5OjYzD Ra83gS0GnH9iKrNTdOUQ0lZFGy3v6hvbVn0skgD4fyspv5IuTxNWNZB8I41Cw3X/18M3 3N9rnkoMDV9dNi5PkNqIbxxgMoz2BgD1Ne20MeINRxTThD/Zoe7DNRWhBSD9FFdZOFUx bGAl+ZdvDNbpgmTfvYLFPvuHD+ucDQkA1LWCTZb/erlVmjUBbjytW2bKqTufh9TKKof3 OcqT868Qg1SUSov36JEL3wAWU4RDQ2Pw8lcxh3+P5M7FdOQ9DoCGsJPtqgwnRxGB0Tx1 PNsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=XoJLKTm3NDdj3w3RtzzMz1926jI4usuO5mIZGP7i8HI=; b=GQtCkYo3Rj6N2TMimIQllu9Ri+okNSbNH+1AJC6ZUs8wQHCXebFp8yO95SBOGhW1oY vi2D3IUm5PoCbjvjSawJ83pYHWfZE/kVf4vSUl27ZocsNRugxXTYaIT/t1rDWrKSgOpC HsgNwIZ/I/FGp822KZg48VL5NS/U2C7yuklCMtgY3sAAFgXhDugN0u5qYJEg2Byv9Y0t JtivXVObXMcgk25nziCLjOlXaNdIsMvMMbs7fhsWQlTcjOlnS7bPPaFCh0zo/dqzdZrQ uvTjnooU99Bhwm1x56FRXmT8RxbrJ54/Pf8Yn5DHW/gxTvRR2vvQxJArhVAXGIjmU6CH YFaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZULoZaFg; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh22si2937718ejb.553.2020.06.30.19.40.34; Tue, 30 Jun 2020 19:40:58 -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=@mediatek.com header.s=dk header.b=ZULoZaFg; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726929AbgGACjr (ORCPT + 99 others); Tue, 30 Jun 2020 22:39:47 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:52805 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726430AbgGACjq (ORCPT ); Tue, 30 Jun 2020 22:39:46 -0400 X-UUID: 066125d49a444ee8be5085ac19db7f8d-20200701 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=XoJLKTm3NDdj3w3RtzzMz1926jI4usuO5mIZGP7i8HI=; b=ZULoZaFgfJ7pORj4FtHM8Ges3jP7sY2vvQTNVJBU7YJ8Zwsvvj88ofhU/nz792Uh2xnpkm3/nk6rI6N8df3xiQCsS9TfOjqg1EN5uzQtysiR8vvKrDqcIOffFSLCeSkAoFdFVXIpUeI5Wd3cW0uRKKmip1FyOlBe43DpNI4G7D8=; X-UUID: 066125d49a444ee8be5085ac19db7f8d-20200701 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1852284986; Wed, 01 Jul 2020 10:39:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Jul 2020 10:39:40 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 1 Jul 2020 10:39:41 +0800 Message-ID: <1593571181.7383.5.camel@mtkswgap22> Subject: Re: [PATCH] cpuidle: change enter_s2idle() prototype From: Neal Liu To: "Rafael J. Wysocki" CC: Neal Liu , Len Brown , "Daniel Lezcano" , Thierry Reding , Jonathan Hunter , "Jacob Pan" , Matthias Brugger , Sami Tolvanen , , , , , , , Date: Wed, 1 Jul 2020 10:39:41 +0800 In-Reply-To: <9963896.lEaLCsxmBZ@kreacher> References: <1593421540-7397-1-git-send-email-neal.liu@mediatek.com> <1593421540-7397-2-git-send-email-neal.liu@mediatek.com> <9963896.lEaLCsxmBZ@kreacher> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTA2LTI5IGF0IDE3OjE3ICswMjAwLCBSYWZhZWwgSi4gV3lzb2NraSB3cm90 ZToNCj4gT24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