From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web09.730.1615943311289958632 for ; Tue, 16 Mar 2021 18:08:32 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Wed, 17 Mar 2021 09:08:24 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Ankur Arora'" , Cc: "'Michael D Kinney'" References: <20210316225918.2625938-1-ankur.a.arora@oracle.com> In-Reply-To: <20210316225918.2625938-1-ankur.a.arora@oracle.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0hdIE1kZVBrZzogdXNlIENwdVBhdXNlKCkgaW4gQ3B1RGVhZExvb3AoKQ==?= Date: Wed, 17 Mar 2021 09:08:25 +0800 Message-ID: <00a801d71aca$08347310$189d5930$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKL54yivLHijBHxKtv0oISvMffV9KkdxAWw Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Ankur: Can you give the detail usage for the lower power state when enter = into CpuDeadLoop()? =20 Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Ankur Arora > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA3=D4=C217=C8=D5 6:59 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Ankur Arora ; Liming Gao > ; Michael D Kinney > > =D6=F7=CC=E2: [PATCH] MdePkg: use CpuPause() in CpuDeadLoop() >=20 > Use CpuPause() to allow the CPU to go into a lower power state > state while we spin wait. >=20 > Cc: Liming Gao > Signed-off-by: Ankur Arora > Reviewed-by: Michael D Kinney > --- > MdePkg/Library/BaseLib/CpuDeadLoop.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/MdePkg/Library/BaseLib/CpuDeadLoop.c > b/MdePkg/Library/BaseLib/CpuDeadLoop.c > index 9e110cacbc96..3cd304351a65 100644 > --- a/MdePkg/Library/BaseLib/CpuDeadLoop.c > +++ b/MdePkg/Library/BaseLib/CpuDeadLoop.c > @@ -28,5 +28,7 @@ CpuDeadLoop ( > { > volatile UINTN Index; >=20 > - for (Index =3D 0; Index =3D=3D 0;); > + for (Index =3D 0; Index =3D=3D 0;) { > + CpuPause(); > + } > } > -- > 2.9.3