Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2599472iob; Mon, 16 May 2022 01:43:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPEoUbSMKvIKn6Tvtjms0lsFJ2uFqmP1rpod9vjhdUS0+kNCnqExpfNTCPvk/y7iKffnLk X-Received: by 2002:a05:600c:2210:b0:393:ffb8:2985 with SMTP id z16-20020a05600c221000b00393ffb82985mr25729451wml.167.1652690614508; Mon, 16 May 2022 01:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652690614; cv=none; d=google.com; s=arc-20160816; b=xTdk/tVbsfZM0iAvZB7jcknVAm1vsW0B2cmDk/SkAFSd4Vot3b+PzVE7NpV9/Bs272 caZI6BGMp83vIFvyznazsoCimXFrV3l6XjdJk/MBTMNsRKNUw2ZILMrKMw2oE/aJygG9 tu++i93VxviQXgnS9CT19W3rLs93CIWgLZEIsJtIfP8RQUeP2PKmf/iuffsQ0le+8MiM ySvOGSxYRaW3CBSwfrAZrSwxiYKiZZyZAxB/bxOVTU+6F+FKnBpv6jyd0RUXXIArT64u 8AAVfSNsCLP+VE8bfGkHw/ijGXc+oi0vbVHDiKTVpwxSBEhx91wmE9yCW9H4rZGvYljr tvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lbeJpfAzZqKlcW2gnPn7UeQQW5Vthh4v2JU+1Y3Do4I=; b=cxttV7ZHxObc4txXZV1D7yAvJ1rQFQpK5VNI3lfTunUlOl2KC4CObg9zpSSyqMv9oq gEWxc3FmSX+ICi4rNMxXpVOOQOj3/pgR7GYZ6oLznwdqB22PqfAwXvkcTJ/Gt7MfPYK2 V9FadSV1eaNKQbatqyU2RuT4aClCnk4nUi4mabNnnsNjqQmljnII3IS7sKbTO8E5Mp/j ZKzCIIPh3QUpqptghGQ91sAlaqMnBwvFE4Vzxf/l91xieTIyXMXRshIU9JTcG042+CcU oHn5mUDVRwlGhXhufGtTXMLIohpw/HTYhgS8I9HL7xjmEY8Q6TjytOv1wh8b+yW1/owU Om4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=LF2BHC23; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a5d6b4b000000b0020c95c4eda7si9504155wrw.250.2022.05.16.01.43.08; Mon, 16 May 2022 01:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=LF2BHC23; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbiEOABp (ORCPT + 99 others); Sat, 14 May 2022 20:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiEOABn (ORCPT ); Sat, 14 May 2022 20:01:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E96624F34; Sat, 14 May 2022 17:01:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2ED7360C77; Sun, 15 May 2022 00:01:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92ED8C340EE; Sun, 15 May 2022 00:01:37 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="LF2BHC23" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1652572895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lbeJpfAzZqKlcW2gnPn7UeQQW5Vthh4v2JU+1Y3Do4I=; b=LF2BHC23HiZypFaW4/oFFz3rtooK0g3A0x0ESrklX/UPaMHFSf5n5TZlBzYdpIJ/YF1qZG KPvuYzVJlTID9PqF9aIhy6BNXVTqmogF11Cr2ko9+w3MkzxycBCycpP4t51xeVnZKyJQqR nKDPiErAdUSPZO8QLBxzIfy2wSIHa3o= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 1e89a44e (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 15 May 2022 00:01:35 +0000 (UTC) Date: Sun, 15 May 2022 02:01:31 +0200 From: "Jason A. Donenfeld" To: Huacai Chen Cc: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell Subject: Re: [PATCH V10 08/22] LoongArch: Add other common headers Message-ID: References: <20220514080402.2650181-1-chenhuacai@loongson.cn> <20220514080402.2650181-9-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220514080402.2650181-9-chenhuacai@loongson.cn> X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 14, 2022 at 04:03:48PM +0800, Huacai Chen wrote: > diff --git a/arch/loongarch/include/asm/timex.h b/arch/loongarch/include/asm/timex.h > new file mode 100644 > index 000000000000..3f8db082f00d > --- /dev/null > +++ b/arch/loongarch/include/asm/timex.h > @@ -0,0 +1,31 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2020-2022 Loongson Technology Corporation Limited > + */ > +#ifndef _ASM_TIMEX_H > +#define _ASM_TIMEX_H > + > +#ifdef __KERNEL__ > + > +#include > + > +#include > +#include > + > +/* > + * Standard way to access the cycle counter. > + * Currently only used on SMP for scheduling. > + * > + * We know that all SMP capable CPUs have cycle counters. > + */ > + > +typedef unsigned long cycles_t; > + > +static inline cycles_t get_cycles(void) > +{ > + return drdtime(); > +} Please add: #define get_cycles get_cycles which is what other archs are getting for 5.19. Jason