Received: by 10.223.164.202 with SMTP id h10csp6063578wrb; Tue, 21 Nov 2017 21:46:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMbD8MxmV8td/8WOSLg2m1LzZvfhZuOnViKCiJd26qc44yfArUhWmKbLU1obk0mzBPlasffZ X-Received: by 10.101.90.138 with SMTP id c10mr5896041pgt.441.1511329585172; Tue, 21 Nov 2017 21:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511329585; cv=none; d=google.com; s=arc-20160816; b=B1rX1F8V6hUbWgu/mBRL0PIUm9ViQVZKAORiFOD/3UpNq3snnHMMvAAMwz012clAyX iJAT35N+G3m3hlZmJ/1i2JqITqEieyBKAM3MqxHyOgb/n2bcBtsVTP+a/FRaSbGUl0bZ QHfoEg1jW4fHmHQorQsPXeDQC5mY6OLUWApSpkSGSelo2RQd5PARJ7A3jzaZPLAmGr67 aWBX+8KieuyyUBjysVM6Qx/msZJ5UgDfweMjDJ3HBKzhRbuwPWk5FSFXG9bpojmmX+ql y6PmLpx1KwEaPwl5FvhWZCCmGrNrNPdQiPkLGuxDOExLbMqoru0A9SVybNb6N9XMEYwM l6Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=G9zM3A8Eo87m+NZCMf1x1evl5M6YobtspqM7T4VJZoo=; b=cL1sNqscmdxzurXtZoBH6Fy4b+Y8uavdRZV7gS045UvCrWKyoBoOb2wWP10v1RgTB9 dLB7E1F7/6Ox73MhsXvyjtUOJnNm/4uJY2zsZI5aKMYHL/mKpOFneuvL7XxbclN1Twiy gUajHICHB/RJGg4zJje6uiBwrtyzzNJzz8nL7CbjsVNNm65vvZYsl5qx0fBu63OvpPX/ 261v1/hSQPDa7Fax3txN+07+biGifOU8C62QNTt9gOrXSPfhQJ8ptue0DcovbUbwycb2 jq4jepKrXM7wkmOr03KKWQatJcBOuIH4RVq66GDCnvTzAQ5m4JPpniqP+GK36C1yi1qs oe9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DsPx8ZRE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si4772052pgp.493.2017.11.21.21.46.14; Tue, 21 Nov 2017 21:46:25 -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=@gmail.com header.s=20161025 header.b=DsPx8ZRE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751313AbdKVFph (ORCPT + 76 others); Wed, 22 Nov 2017 00:45:37 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:44157 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbdKVFpf (ORCPT ); Wed, 22 Nov 2017 00:45:35 -0500 Received: by mail-io0-f196.google.com with SMTP id w127so21956210iow.11; Tue, 21 Nov 2017 21:45:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G9zM3A8Eo87m+NZCMf1x1evl5M6YobtspqM7T4VJZoo=; b=DsPx8ZREVcN8DbJm2fTthsSPCyUq3gcPPTa7+Gn1yJpxaxHv2kPZAcrxgVEmfPGvkc o3IzV6/sO1DI7Rd0BW8G31QmjYhBv0iieybXqbyeeRrAR9MdH7ZckGElvLZPhzCYePAd Xk90lnuQTFftlQPlmooAtmuOVGAdJxOm73gTjnoHJU0YQKh8jaTlgDTDrsbxM6ex1R8v DJ+4wUkikDxDnYr5V2iONEtPAfkbwFbJUDwJCtSMIc0tRhza9Bc0ryMxiSQcNOruEVA9 v3lEGExgm8C2PwZqO41f5Btamjxhz6HKHtOWRDpQsX69CY9oVCsgb+gzjT9JgtLzNOnP txSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=G9zM3A8Eo87m+NZCMf1x1evl5M6YobtspqM7T4VJZoo=; b=Mf0LJYRxeU4rx6bUZQcOJheBwz3psrfvz6gghZXOTSpwGapsBq5ZD2pfy7hPEAEGx+ II2PLbWS1bySp2ed3p+3/ufoQ4I7l+xV+KkrID7IySW7Oqa8UVYve6ufrdM1lXLDoiV9 gIwwHhvg351d61IGlnPhMiCZtJ4D1TS6NcYqsfvWA59A0XP2rb0Y03+EI9mlAtrgkz3N FNbjmjspC//NMLeXX0rFmQb1JH5eDEX01IstMNYkmAU+Chg2zxs/RXsxBR0o9lDxFPLp QvY+BfTVrzAmUR2U6K6rxfgBd/BZQQLMLkH5Ffo7VJ1e3plzjv4dRJfNSazOQBACAWWa 4z/w== X-Gm-Message-State: AJaThX5DxaDzF9A/EWql+qwkIO15BknfuusGXmgH3NiRwQPNdRZgwMEW LSREusQ2phlO4USGV8G3KGsn0UodSG7RHrh6U+4= X-Received: by 10.107.38.79 with SMTP id m76mr21977875iom.187.1511329534614; Tue, 21 Nov 2017 21:45:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.7.91 with HTTP; Tue, 21 Nov 2017 21:45:34 -0800 (PST) In-Reply-To: References: From: Vincent Chen Date: Wed, 22 Nov 2017 13:45:34 +0800 Message-ID: Subject: Re: FW: [PATCH 24/31] nds32: Miscellaneous header files To: Arnd Bergmann Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Green Hu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-09 18:42 GMT+08:00 Vincent Chen : >>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >>> + >>> +static inline void __delay(unsigned long loops) { >>> + __asm__ __volatile__(".align 2\n" >>> + "1:\n" >>> + "\taddi\t%0, %0, -1\n" >>> + "\tbgtz\t%0, 1b\n" >>> + :"=r"(loops) >>> + :"0"(loops)); } >> >> Does the architecture define a high-resolution clock source? If yes, then it's better to use that to get exact timing than to rely on the loop calibration. >> > Dear Arnd: > > Thanks. > I will modify it in the next version patch. > Sorry. Our architecture does not define a high-resolution clock source. At that time, I promised you because I thought maybe I can use SOC defined clock source to replace it. For portability, It is a terrible method. we will keep the original implementation for __delay() in the next version patch. Vincent >>> +/* >>> + * This file is generally used by user-level software, so you need to >>> + * be a little careful about namespace pollution etc. Also, we >>> +cannot >>> + * assume GCC is being used. >>> + */ >>> + >>> +typedef unsigned short __kernel_mode_t; #define __kernel_mode_t >>> +__kernel_mode_t >>> + >>> +typedef unsigned short __kernel_ipc_pid_t; #define __kernel_ipc_pid_t >>> +__kernel_ipc_pid_t >>> + >>> +typedef unsigned short __kernel_uid_t; typedef unsigned short >>> +__kernel_gid_t; #define __kernel_uid_t __kernel_uid_t >>> + >>> +typedef unsigned short __kernel_old_dev_t; #define __kernel_old_dev_t >>> +__kernel_old_dev_t >>> + >>> +#include >> >> I don't understand why you would want to override any of those. >> Changing them unfortunately means rebuilding all of your user space, but I think it would be better to do that now than to suffer from this later on. >> >> Arnd > > Thanks. > I will remove them in the next version patch. > > Best regards > Vincent From 1583584821990922626@xxx Thu Nov 09 10:42:52 +0000 2017 X-GM-THRID: 1583483462231450888 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread