Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1244502ybl; Sun, 1 Dec 2019 23:59:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxERlQgJJooRp/tQBjC1Q6Jkq1xchoSbisTnzVJQVPIUzHC2WAYzRYYbhHgYAyFEibo4fLZ X-Received: by 2002:a17:906:4bd1:: with SMTP id x17mr18471617ejv.181.1575273573176; Sun, 01 Dec 2019 23:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575273573; cv=none; d=google.com; s=arc-20160816; b=PSALTFnpvfnJfgo0elu4Ifs0SEcm8mBuC0sbYtf6DQXv/oor1x3VGub+/xGTM6mJnv 0QLuP8h0GXfcy4gE9Qefy2p8xUzRCxZklqm9d/E5OV4AGoi4URCKNfvnWSYmUEvVkKzM Lgb/xUAZ/SL/QAoI3bGbOlCQktSyxtC8E6iBk7/3w7DwjWcCSZsH/6BWRFmQssFtMz1w W+YyNliwT+IMg0h75az4GLD0u5sJfH68RjR4J/DzVlgZ6MGcgcuBMgIHA8sfz6WOZ1mC DE9y7yaWZC9xda0au85VqQI9NsVVUvMOlEHDKVmenVGOhNKtmqlhv28wtZ3LeERpAEde NlQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=dAixbg2856IVDTJUGcX9CkGdb1Msgmw2hMVJFKg+cLw=; b=ktNyViAdJpjN9lXbA91+AJCV/bTf3emmTRCT0hb5zHi1NygiIzk1jJ8UeQXKF+3EfW HOnhSGL1xs8JRYKQfs6lw3UfIA94rsy7xTtqrfScO/stLBTbUfEzNat//a6Hnw+x9w/L 4HNxA3hWyXkREP7HGJ/qfdnpIXNorLevPxfkgkwoZW/S6YmzAdaUfr9KXxKzLaLgeEu0 o974sv7J6zJwnHiXHkO5O9SyUtHYQngtC25N05AExcd5wcio31p3kL4Ed56VrqffFWg5 uTBzr7/d6sQi+tNDPATikRQE8W0exECjs3wqXD64T+6xqhD4AdpFgVwtgi7l6rC+iYz3 ED9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="uHMmhX5/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si5628578ede.395.2019.12.01.23.58.59; Sun, 01 Dec 2019 23:59:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="uHMmhX5/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727391AbfLBH5f (ORCPT + 99 others); Mon, 2 Dec 2019 02:57:35 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:51844 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfLBH5e (ORCPT ); Mon, 2 Dec 2019 02:57:34 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47RHX84lMzz9txt3; Mon, 2 Dec 2019 08:57:28 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=uHMmhX5/; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id jLMTh157QIWf; Mon, 2 Dec 2019 08:57:28 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 47RHX83hWpz9txsp; Mon, 2 Dec 2019 08:57:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1575273448; bh=dAixbg2856IVDTJUGcX9CkGdb1Msgmw2hMVJFKg+cLw=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=uHMmhX5/tI4jalCVzbmEbBOroNwBXN9OdwBgmY0h2MOwy4Af2Fnm2pxWV0uohO5/P 1aJZsp4zbm97095Q0nUll9Enu9pqONyejCXbtLLmbOS02Vlwtnm79j29PhHupVr2Ur 0V5tkmCHDL8DEGp/rF+27ZwQCkg2VcklOMGzhy3w= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1F8A78B79B; Mon, 2 Dec 2019 08:57:33 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id vNVfrct8lKmH; Mon, 2 Dec 2019 08:57:33 +0100 (CET) Received: from po16098vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.103]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 014E78B79A; Mon, 2 Dec 2019 08:57:32 +0100 (CET) Received: by po16098vm.idsi0.si.c-s.fr (Postfix, from userid 0) id F061C63600; Mon, 2 Dec 2019 07:57:32 +0000 (UTC) Message-Id: <36f111437e66e601929308f5d5dce230e1ce472f.1575273217.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v4 6/8] powerpc/vdso32: use LOAD_REG_IMMEDIATE() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, arnd@arndb.de Date: Mon, 2 Dec 2019 07:57:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use LOAD_REG_IMMEDIATE() to load registers with immediate value. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/vdso32/gettimeofday.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/vdso32/gettimeofday.S b/arch/powerpc/kernel/vdso32/gettimeofday.S index 74973548529a..9aafacea9c4a 100644 --- a/arch/powerpc/kernel/vdso32/gettimeofday.S +++ b/arch/powerpc/kernel/vdso32/gettimeofday.S @@ -37,8 +37,7 @@ V_FUNCTION_BEGIN(__kernel_gettimeofday) get_datapage r9, r0 cmplwi r10,0 /* check if tv is NULL */ beq 3f - lis r7,1000000@ha /* load up USEC_PER_SEC */ - addi r7,r7,1000000@l /* so we get microseconds in r4 */ + LOAD_REG_IMMEDIATE(r7, 1000000) /* load up USEC_PER_SEC */ bl __do_get_tspec@local /* get sec/usec from tb & kernel */ stw r3,TVAL32_TV_SEC(r10) stw r4,TVAL32_TV_USEC(r10) @@ -81,8 +80,7 @@ V_FUNCTION_BEGIN(__kernel_clock_gettime) .cfi_register lr,r12 mr r11,r4 /* r11 saves tp */ get_datapage r9, r0 - lis r7,NSEC_PER_SEC@h /* want nanoseconds */ - ori r7,r7,NSEC_PER_SEC@l + LOAD_REG_IMMEDIATE(r7, NSEC_PER_SEC) /* load up NSEC_PER_SEC */ beq cr5, .Lcoarse_clocks .Lprecise_clocks: bl __do_get_tspec@local /* get sec/nsec from tb & kernel */ -- 2.13.3