Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp125046rdb; Tue, 5 Dec 2023 00:01:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoyxBQkzIz5g82fA7YeB44Pgcd1Ht4eGK2UrTPYGgpaG1pO7Mzb4SfTA3D4zYm7pClqlxW X-Received: by 2002:a05:6a21:6d8a:b0:18f:9c4:d330 with SMTP id wl10-20020a056a216d8a00b0018f09c4d330mr1220246pzb.32.1701763304835; Tue, 05 Dec 2023 00:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701763304; cv=none; d=google.com; s=arc-20160816; b=kRc54fePQ7VsA3IwNdYMadu+t1l9LnSX0gIGiuBSU1s9uOvgOYnSHa8YYqDpIndBdW JvWWzOWb65ogqYXPT5qqc3mInXMSiPapmFkn2K6tYiyxLnbbq5hHn+qz1BNGo4fhUhrB zPoD6XDebWkZwyuJbMCTPYUv3PxmDmNiMRvCyFe0SJJ6SkzxYxAY1FwRf1p5lDbpM7Vp /iuavolhRYu7vwAz5P2BOVZsYgmzWGDAGCnTgHCaNq7HqWYbsnMbCEhJNrEcnpvsx0K5 IgDRuSXhO8VExpWArmwGReNUo7BK00R9H0lcukk4eiPg3Kde5M2Ji/YAkxk2JsmZBg8w c0mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=kem+afxDqXV8dXT3EP4hsalJM80y/okrC5C4maSQVMY=; fh=vG2mXSfzrJUC6DLi6+ja6c+OeaIBG06LUTzYqdYblYk=; b=TfMK2e/MqiYbIrNaubrhILPJfF0ZYj7HMPZhTCQaKWQR0vtEXcVfVju5JTtFCeYpYy H/6+kUPPpJLPnJAx4mIOHNwMx7i0dO2w0jZtsH9QqybhISLGpGhlA+lA6jB7ABe6pvhe IXFfy3kp9SvDV32xBzzWZHAFzw+MvboG3Nr893utwfmQkGlzX1qM3DYPJvtCVTnUA7ck GOCiRUZ2RuMmQRwxiJ1EKvG31AbAqwTrskk6fvhZBWfALQwokY3QPaW5tS59EjA7JQNv 6M66a0/IuK1H/aE3BaYFGgnIxMoyMQqvUEH9UYbM+/mWOq7z9MRmNNdcetYgj01OY9Sb rAiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=E5x50bwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b10-20020a630c0a000000b005b7d9aace9dsi9084097pgl.46.2023.12.05.00.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=E5x50bwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 68342807D8C6; Tue, 5 Dec 2023 00:01:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjLEIBK (ORCPT + 99 others); Tue, 5 Dec 2023 03:01:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjLEIBI (ORCPT ); Tue, 5 Dec 2023 03:01:08 -0500 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E5C83 for ; Tue, 5 Dec 2023 00:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1701763273; bh=LEyxd27Gk0XOwyve4QrIliQ4+SQaDw1WzHmLAk3h3o0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=E5x50bwjlWEAkvr65z9O0U24b5VdvGh320kknztpO+68TusDhIA/nYIbetYtIsjtE lNXkIMkhCr6MER94LALdRs0J09FyWoagBDuL13hzP5IdqWoK9HAEMTZHQygr3UVxDJ 1ePp22C5rOWcyREWuaq8bUWaNak0tsCo3eVRhZSc= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id CD1C166C44; Tue, 5 Dec 2023 03:01:12 -0500 (EST) Message-ID: <369bce8101f2db6685c0e2446976eb7ea16510eb.camel@xry111.site> Subject: Ping: [PATCH] LoongArch: Slightly clean up drdtime From: Xi Ruoyao To: Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Tue, 05 Dec 2023 16:01:11 +0800 In-Reply-To: <20231126121727.47303-2-xry111@xry111.site> References: <20231126121727.47303-2-xry111@xry111.site> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:01:28 -0800 (PST) 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. >=20 > Signed-off-by: Xi Ruoyao > --- > =C2=A0arch/loongarch/include/asm/loongarch.h | 5 ++--- > =C2=A01 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/incl= ude/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 @@ > =C2=A0 > =C2=A0static __always_inline u64 drdtime(void) > =C2=A0{ > - int rID =3D 0; > =C2=A0 u64 val =3D 0; > =C2=A0 > =C2=A0 __asm__ __volatile__( > - "rdtime.d %0, %1 \n\t" > - : "=3Dr"(val), "=3Dr"(rID) > + "rdtime.d %0, $zero\n\t" > + : "=3Dr"(val) > =C2=A0 : > =C2=A0 ); > =C2=A0 return val; --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University