Message ID | 83f5615c-0ab0-4e1e-b083-b5558ee222b9.liush@allwinnertech.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=z6AX=C2=lists.infradead.org=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 73F9B112E for <patchwork-linux-riscv@patchwork.kernel.org>; Thu, 17 Sep 2020 15:24:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D7F8320708 for <patchwork-linux-riscv@patchwork.kernel.org>; Thu, 17 Sep 2020 15:24:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2EKFm5tO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7F8320708 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=allwinnertech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:Reply-To:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:References:MIME-Version:Subject: Message-ID:To:From:Date:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cFV5Ks/1/T6aNsQGgpMYDPmo3PRIIyVxs/NLDUBUL9E=; b=2EKFm5tOVl9x3RbtV9TcE0Olp OkSQ0LvJ/1pJ8QgTHG7xMmbxcwDC6szPPxEorMW8s/NLs1VCpZr5IKlNLz9x3puAlkVFHlpeCJE9E oA9JQcwIk0sGawtsv5oZG08INXWBWSOYs+/D3/iZ/qgS/oZ1GZ6TvJyUnDAfHqe8W4Nrhcq2M0gzS wnXLayvprYBkffigJ7WwhyGxj+PwnXaIwpPr132WqTxxcQ/WJOFjc5cVxf9v8gh7dxStgNrGkiVHB n7oqzpbK8sX1vanqbf5TV3VMFXVTdESSlPQq1vRETKuLv+Zti17GUXoyn32x6ma1wH1icniMJGioq Gb2ITIZkQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvlk-0004HM-3a; Thu, 17 Sep 2020 15:24:20 +0000 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIAYZ-0005iX-8J for linux-riscv@lists.infradead.org; Tue, 15 Sep 2020 12:59:37 +0000 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.07386647|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.0476423-0.000196116-0.952162; FP=0|0|0|0|0|-1|-1|-1; HT=e01l10422; MF=liush@allwinnertech.com; NM=1; PH=DW; RN=14; RT=14; SR=0; TI=W4_5948689_DEFAULT_0A9326FA_1600174289947_o7001c2340k; Received: from WS-web (liush@allwinnertech.com[W4_5948689_DEFAULT_0A9326FA_1600174289947_o7001c2340k]) by ay29a011140100197.et135 at Tue, 15 Sep 2020 20:59:23 +0800 Date: Tue, 15 Sep 2020 20:59:23 +0800 From: " =?utf-8?b?5YiY6YK15Y2OQlRE?= " <liush@allwinnertech.com> To: "Palmer Dabbelt" <palmer@dabbelt.com> Message-ID: <83f5615c-0ab0-4e1e-b083-b5558ee222b9.liush@allwinnertech.com> Subject: =?utf-8?b?5Zue5aSN77yaW1BBVENIXSBjcHVpZGxlOiBhZGQgcmlzY3YgY3B1aWRs?= =?utf-8?b?ZSBkcml2ZXI=?= X-Mailer: [Alimail-Mailagent][W4_5948689][DEFAULT][Firefox] MIME-Version: 1.0 References: <1600048323-2964-1-git-send-email-liush@allwinnertech.com>, <mhng-e743b908-36de-4226-832d-bc5acbbfd81b@palmerdabbelt-glaptop1> x-aliyun-mail-creator: W4_5948689_DEFAULT_IHJTW96aWxsYS81LjAgKFgxMTsgVWJ1bnR1OyBMaW51eCB4ODZfNjQ7IHJ2OjgwLjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvODAuMA==jQ In-Reply-To: <mhng-e743b908-36de-4226-832d-bc5acbbfd81b@palmerdabbelt-glaptop1> X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_085936_366537_A562CB7F X-CRM114-Status: GOOD ( 33.63 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [121.197.207.205 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Mailman-Approved-At: Thu, 17 Sep 2020 11:24:17 -0400 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Reply-To: =?utf-8?b?5YiY6YK15Y2OQlRE?= <liush@allwinnertech.com> Cc: Damien Le Moal <Damien.LeMoal@wdc.com>, aou <aou@eecs.berkeley.edu>, "daniel.lezcano" <daniel.lezcano@linaro.org>, linux-pm <linux-pm@vger.kernel.org>, Anup Patel <Anup.Patel@wdc.com>, rjw <rjw@rjwysocki.net>, "wangkefeng.wang" <wangkefeng.wang@huawei.com>, linux-kernel <linux-kernel@vger.kernel.org>, Atish Patra <Atish.Patra@wdc.com>, "zong.li" <zong.li@sifive.com>, Paul Walmsley <paul.walmsley@sifive.com>, linux-riscv <linux-riscv@lists.infradead.org>, kernel <kernel@esmil.dk> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org |
Series |
回复:[PATCH] cpuidle: add riscv cpuidle driver
|
expand
|
--- /dev/null +++ b/arch/riscv/include/asm/cpuidle.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __RISCV_CPUIDLE_H +#define __RISCV_CPUIDLE_H + +static inline void cpu_do_idle(void) +{ + mb(); + wait_for_interrupt(); +} + +#endif