Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp128156rdb; Tue, 5 Dec 2023 00:08:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGX238jodWbae2bJ5I0RIXmjQ4jVxZ+aywB6JmdKRbKnYVYaevpu4/KtX2yeRUUk9NCPKWv X-Received: by 2002:aa7:999d:0:b0:6c3:5ffb:b63e with SMTP id k29-20020aa7999d000000b006c35ffbb63emr610200pfh.33.1701763700215; Tue, 05 Dec 2023 00:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701763700; cv=none; d=google.com; s=arc-20160816; b=EJb1HM6VnD4zlRj8ChxYyZz7k219GiPvzYh2S4UyA3GmAALlOX6KqXiaTOvwlTtK6v U1T/NXjz5LybRmUpN5UKR96SOLdnUGmg8dLGXTkMQ3TluK2z+XGEb+V51g3ybmVRHEqx Qj6r6t+M5w4+F5EDhHarcq+cd5Kcbdm/dzUcL3+Bm2uFSWkgGxk6Hb2dRh8V7440nAQp bSet7MDCWZ+ESZYP4a/Tn3UkpmXJa6JmQYn5HP1sjBIub38gC67kpdwgzCoCaq0dvTwU ZmnG/b63caBz9tTGXl/vIJ0xGGSsa5L4pxvO/AuRVmUgurHhlWKHTaFNvpVfIg8MuMN1 J7NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jD0vlw0NDP8lS9JPwZEsbl6s5lf9GlAusRjLIUlHsCM=; fh=4gORYhFSYoqka+FQpeWyYrWRu87SIJkuZ+H/I6XZHP8=; b=Kq5TJ5NQErUM4zFv4AeFIul4mabRO1eHvTkpQlAY/xdWSbTiRjCa9tmGQ7hA9FCODl Jr/MV2IOfz51zPa/IByt+i6xhyhamHyvIbYhTQsrLwTA6CLxR90FMaiWIb+FNdPU5/S3 oM+Twxql2ID19Q9SDG9Z3WPriOelc17W9qg6WDfQYOoYPGQAF6CJOnD+FEJAr1Ebpp/c 1J/+wCGtYRX+G3cJgN5RZNKTJoEIsdIzWpj7jtNMrV3ji/w9ZiRiNTcfUyedqOhrtpmS S+skfmSPSWn7NTU+lESZXmtvByzxnN1laKjIT5DR/esiMYKojZrv3ZwB0j2y7Gmr1B/n 00Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVB0txdl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id v22-20020a056a00149600b006ce5357405fsi2876632pfu.9.2023.12.05.00.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVB0txdl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 51A1180ABDDA; Tue, 5 Dec 2023 00:08:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344740AbjLEIIC (ORCPT + 99 others); Tue, 5 Dec 2023 03:08:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231722AbjLEIIB (ORCPT ); Tue, 5 Dec 2023 03:08:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98D11183 for ; Tue, 5 Dec 2023 00:08:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CAFAC433C9 for ; Tue, 5 Dec 2023 08:08:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701763686; bh=1SaNPcpTvqhPELifdtDbm5KjpDsvdHexEdnN4bNkT1w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WVB0txdlB/PII8u+JWwqWohe+Xdo2Xd4fO3GiWSrdL3JHWvjfQWZH3kl1chOH9YSX oD20tH/4Ket2SFItDrH3/B2kWWvOUcdW6LlOIijU6QZlk7C4ncZ3LJDaeMzBnuJ7uy W4z0cQJSauySwz/J9kA4iNKMMH3EgYtnNh/qoCff8VSU0J5AXK7in71nRdKBCTrGTS KfpK4RpkdAS2gQt/CaRF9JcneTt8UzHPaCYITRPWOvTpAkoFG5YrTiCm70QUMvKkXL GUn1G4QOhwgd/GN8JfZvPwdJnNa7Yq16Nzy5qQz6KhXEpBI4PSBwcynrW+KSSh4yfq BVEvYv82682Ng== Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a1b68ae40f0so189922466b.0 for ; Tue, 05 Dec 2023 00:08:06 -0800 (PST) X-Gm-Message-State: AOJu0YzifdT6tzOaYKXrdTij39hpQ/SNjdpDHcHjDNLO/PRVEBTfrOsl HbTy6Zk/1NKFQupdtYuRalYUEUsdZ41yo59/xVg= X-Received: by 2002:a17:906:b39a:b0:9da:ee00:a023 with SMTP id uh26-20020a170906b39a00b009daee00a023mr225917ejc.30.1701763684594; Tue, 05 Dec 2023 00:08:04 -0800 (PST) MIME-Version: 1.0 References: <20231126121727.47303-2-xry111@xry111.site> <369bce8101f2db6685c0e2446976eb7ea16510eb.camel@xry111.site> In-Reply-To: <369bce8101f2db6685c0e2446976eb7ea16510eb.camel@xry111.site> From: Huacai Chen Date: Tue, 5 Dec 2023 16:07:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Ping: [PATCH] LoongArch: Slightly clean up drdtime To: Xi Ruoyao Cc: WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:08:17 -0800 (PST) Queued, thanks. Huacai On Tue, Dec 5, 2023 at 4:01=E2=80=AFPM Xi Ruoyao wrote= : > > Ping. > > On Sun, 2023-11-26 at 20:17 +0800, Xi Ruoyao wrote: > > As we are just discarding the stable clock ID, simply write it into > > $zero instead of allocating a temporary register. > > > > Signed-off-by: Xi Ruoyao > > --- > > arch/loongarch/include/asm/loongarch.h | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/in= clude/asm/loongarch.h > > index 9b4957cefa8a..46366e783c84 100644 > > --- a/arch/loongarch/include/asm/loongarch.h > > +++ b/arch/loongarch/include/asm/loongarch.h > > @@ -1098,12 +1098,11 @@ > > > > static __always_inline u64 drdtime(void) > > { > > - int rID =3D 0; > > u64 val =3D 0; > > > > __asm__ __volatile__( > > - "rdtime.d %0, %1 \n\t" > > - : "=3Dr"(val), "=3Dr"(rID) > > + "rdtime.d %0, $zero\n\t" > > + : "=3Dr"(val) > > : > > ); > > return val; > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University