Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2518396iob; Sun, 15 May 2022 22:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV+xtSNQIs2X8Piu/+Hc6xl7Gla+P/+oFciE8JcCz6yXTncdegOFsV95E7Iiscu4dfpMdF X-Received: by 2002:a5d:648b:0:b0:20c:5aec:1c06 with SMTP id o11-20020a5d648b000000b0020c5aec1c06mr12405322wri.525.1652680662615; Sun, 15 May 2022 22:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652680662; cv=none; d=google.com; s=arc-20160816; b=ExYjgGAu7K4kTM8LKAT+i51FRIwFeKOTS82aV+OH/o5K6UaLeOVD+My+rE3XfUQDLH 26K+td1AlDwoR3nQklaVfH4Xyjhvr71/bs+n42LNCFBDvouQ0hG5LjYaiMF8lKf1Ix/x aU9fSkHIMWUJG3WtkDrTPi30m6O2eTsEfnIGvbJ6hZeBCQJ/VcSuDTkNUTTBrlCUipmk Igi9YKpW0aCSJEVu2PePTYeaHmxYfm1JzBH4h30hFZ415k+qFML8k5f6h4vCdQ8ChI5F /45TKqGiDdJFpbd40GbGiBQ2teG2krQ52vgKIUmHo0GALGmpCU980pUhSTx+GrOkwQaN SGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0QIIKjgXIHBycGsg2e3nh73aYUCNf0E8y4svNCOmUEM=; b=mmfa9TBVy8X8HNq3hilk1nJ9p1y4s19ROvHaOdM4rApGhMNxP/YJ4TneaR28hTpNRC pd61QprqMrk6yTOFHRMF9XVYqMDAEyOP9ScBnG8yNo/L107RPD1Yoa96WbvTiwT+ZoET 5tA/As5ofzGxKPl3M68VDAy4Y16nA7gABH8GDEuKeOG1PPetEl8jxSeIRdnWYdEasxnL 3ikt9Sif32NgJf6d1boJuqD47XENFPevLuah98z92mIJFh8/zvfdbmjO/PtDWkpA+QRD naAZOU5woNkJuXw6R6vAK3DM4/h1GxP82DO8bMnwLDc9EWGV5LbrtQ1ZDVetGkS4UuPy hbYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XwMI8qF0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020adfd231000000b0020c7708068bsi7716830wrh.101.2022.05.15.22.57.16; Sun, 15 May 2022 22:57:42 -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=@gmail.com header.s=20210112 header.b=XwMI8qF0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236552AbiEOLma (ORCPT + 99 others); Sun, 15 May 2022 07:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbiEOLm3 (ORCPT ); Sun, 15 May 2022 07:42:29 -0400 Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 346B6108A; Sun, 15 May 2022 04:42:28 -0700 (PDT) Received: by mail-vk1-xa2e.google.com with SMTP id t12so6255727vkt.5; Sun, 15 May 2022 04:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0QIIKjgXIHBycGsg2e3nh73aYUCNf0E8y4svNCOmUEM=; b=XwMI8qF01tzWluqrR3Cip6WZRsf8KARpiJXFU/IIKaqWLf+nD3L4YG1s5MWj/4Q/Vn UdtB9k6D+cE63dLyd2gQoLwDgfESbz9HGiDKUDo2D3SCJj1NOVwp3n9IhWJHEx5lQsN6 YSZSMwDE4yy8LvXSLmKo2Sowu6zIOf8sH5grENVQAqjRlzblLBTcUGJhgJeQ9RHT5H5D aFPbhFRNslmwLuT5XgDqdoRNcnEPHp9jbFqeWOOPX1eG4HFRBY3p78Uq3SX8w0eU5Qzi quq2ByuGBCRqg1Dkv89p4+FjTjGxiunoM3mw4adqCoi9jZ4KUd0H3fGvXr8eNg0XBDGL ry3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0QIIKjgXIHBycGsg2e3nh73aYUCNf0E8y4svNCOmUEM=; b=V+J1w0TwXDkb3U2KZOz/q72NjbMLkcmI8lQNGtNl/lqIZ1mXOcP+OPZYjUhaKn3x4m my88hAHZHTiGabjdmbPs7mS3kAmoMMzQIRrzosnjKsDXQrOujeJV4rLD5ONZ4muTUctS jYjGlCrw3J4qWhOj3EFt1T09/biJJMB4OeyIVzhtqxU8nZp+XpWJb3A+0UUA1w64JjoK aW0c1n1JXs68bRNCtW/MVidoMqeHmZ0sb2/FgBEjN2J7K++HXRqXlBSPxM5WnwcGbG9g BknpMqPuEa3AkD1c4rapNfy3uSgwXDqR+2nMPkQ/thJp7AGoEVxHnOG2xPbKASs1Xjd8 eTUw== X-Gm-Message-State: AOAM532M8ZSsQoC9M0Ba4zmBWVXm7kCquToIbknkWNjsl98zMVfD3EkR ICfk8yyrjPLqShF9NBXN8dFZcOY2d8+ihEk8xtk= X-Received: by 2002:a05:6122:179d:b0:34e:a817:dcb7 with SMTP id o29-20020a056122179d00b0034ea817dcb7mr4475775vkf.2.1652614946445; Sun, 15 May 2022 04:42:26 -0700 (PDT) MIME-Version: 1.0 References: <20220514080402.2650181-1-chenhuacai@loongson.cn> <20220514080402.2650181-9-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sun, 15 May 2022 19:42:15 +0800 Message-ID: Subject: Re: [PATCH V10 08/22] LoongArch: Add other common headers To: "Jason A. Donenfeld" Cc: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , LKML , Xuefeng Li , Yanteng Si , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi, Jason, On Sun, May 15, 2022 at 8:01 AM Jason A. Donenfeld wrote: > > 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. OK, thanks. Huacai > > Jason