Received: by 10.213.65.68 with SMTP id h4csp623328imn; Fri, 30 Mar 2018 12:05:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tjnk9Of/Hqz8UB25VuwzUFRVr05iCh7+ZLGEBALl95JQoZsDj9ypUUCLdDIg6NCa08h+e X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr208318plo.368.1522436727387; Fri, 30 Mar 2018 12:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522436727; cv=none; d=google.com; s=arc-20160816; b=p3u97V+msQ/O2GqxfHu453RAbEzs1hZF0Xj59SVNpyxp34z0nLrYo1T2IuubE8uJdg v8eQMACcP33AOmvf5rhWOqJ44PqxUuY2BuUdl4T68GYMJCwGYhS441HLinfhHgqlIYlo ojeROMGa5jpRAKpoORUMRJjFG6dppnUBhU2inr6QER7axxi5v0f8XtrNfEb/7E3IZqM1 wOA9MLvhdQHMJCszC9A12wFhLNS3kC5btdTs88plkZrjN+BYMsK4kEBJtpUxstp76w9O QXa4Dw8FwiW8AUjI+xQQSAnCLpfec3bdAgD4duld/Srr0mj6RCuRfa+AgyxN0cmF04/6 LbWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=2ZG2uP4FYfspi1BrE6ZouYgGT2oaREPKemvlRjr8WkA=; b=xm7CQkQqYApyvbQka3mkkFU5hzwcCbnIQxZ5M6rhbeulNuKMN1721jaweMnZvFXMmv bqgI8qtJCaApul6QejS4bDq5WkM7UEiftJr7P02nEIApRxi/TFqNFbltGzRU9tcn4Cw6 9w6kn534kk5r02uK3BlNLxm6mXgYznVz75tGwBs1y7ifryhhyMQWJSNi54BWYe1ILcHH cg8x14QVbCzkYX0quUZvgC7yrVsa5XH1GpZAP5799zHQrqXe+GOAN+K1/ovdtwlMrlk2 f4gETIcqVLoxF0Tq8NTa5WZIxZ62qQrYG//V0MdlwvWguX1d7bnpASyPWt8gQtKHOHn+ yXJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Fs2eRgrB; 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 i74si5893262pgc.262.2018.03.30.12.05.13; Fri, 30 Mar 2018 12:05:27 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=Fs2eRgrB; 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 S1752714AbeC3TDv (ORCPT + 99 others); Fri, 30 Mar 2018 15:03:51 -0400 Received: from casper.infradead.org ([85.118.1.10]:46744 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159AbeC3TDs (ORCPT ); Fri, 30 Mar 2018 15:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Message-ID:In-Reply-To:Subject:cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2ZG2uP4FYfspi1BrE6ZouYgGT2oaREPKemvlRjr8WkA=; b=Fs2eRgrBXfZWVR+7ShuXY0Zvo jruCbEAVdlGLCF7qE8uJVcNvmH4zxqJNCs6snrExeQCZt7hL0leyUt6nxzgF9U3nxyOZs7ttTDEDy biwBjXKoBX4WowFB7RFG4mX/f1t9QwoA6vyhxtSPRKKBMJJcr7/dkH2IyVTEl8fFN4hOBOhkM8/Zf 3K2B/c5CZNpwWNdBzJOOHkQqlqwZu/sSqO13OOA/CbhTc9nz4HRCCgvk+y6Cj3HaQxJ6Us6BnzgSj Bk5nzDDfLGRj7KYm1/mHQxJCueaaUww3+t74+Ft6cpwkM9ccyE7qtI/WbWrKJNPONaDYLK4vvMlLO mzLkYojRQ==; Received: from jsimmons (helo=localhost) by casper.infradead.org with local-esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1zJP-00032O-A4; Fri, 30 Mar 2018 19:03:45 +0000 Date: Fri, 30 Mar 2018 20:03:43 +0100 (BST) From: James Simmons To: NeilBrown cc: Oleg Drokin , Greg Kroah-Hartman , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 16/17] staging: lustre: discard linux-time.h In-Reply-To: <152229760884.27689.2832237566424423407.stgit@noble> Message-ID: References: <152229732768.27689.4800156943561963977.stgit@noble> <152229760884.27689.2832237566424423407.stgit@noble> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180330_200343_373241_CECB56FE X-CRM114-Status: GOOD ( 25.20 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 NO_RELAYS Informational: message was not relayed via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Very little is left in linux-time.h. > Move CFS_TICK to libcfs.h discard the test. Reviewed-by: James Simmons > Signed-off-by: NeilBrown > --- > .../staging/lustre/include/linux/libcfs/libcfs.h | 5 ++ > .../lustre/include/linux/libcfs/linux/libcfs.h | 1 > .../lustre/include/linux/libcfs/linux/linux-time.h | 66 -------------------- > drivers/staging/lustre/lustre/ptlrpc/pinger.c | 2 - > 4 files changed, 6 insertions(+), 68 deletions(-) > delete mode 100644 drivers/staging/lustre/include/linux/libcfs/linux/linux-time.h > > diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h > index 3d3fa52858e5..f183f31da387 100644 > --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h > +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h > @@ -52,6 +52,11 @@ > > #define LOWEST_BIT_SET(x) ((x) & ~((x) - 1)) > > +/* > + * One jiffy > + */ > +#define CFS_TICK (1UL) > + > /* > * Lustre Error Checksum: calculates checksum > * of Hex number by XORing each bit. > diff --git a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > index 30e333af8d0d..c39c34d74382 100644 > --- a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > +++ b/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > @@ -80,7 +80,6 @@ > #include > #include > #include "linux-cpu.h" > -#include "linux-time.h" > > #define LUSTRE_TRACE_SIZE (THREAD_SIZE >> 5) > > diff --git a/drivers/staging/lustre/include/linux/libcfs/linux/linux-time.h b/drivers/staging/lustre/include/linux/libcfs/linux/linux-time.h > deleted file mode 100644 > index ecdebccf2b44..000000000000 > --- a/drivers/staging/lustre/include/linux/libcfs/linux/linux-time.h > +++ /dev/null > @@ -1,66 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0 > -/* > - * GPL HEADER START > - * > - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. > - * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License version 2 only, > - * as published by the Free Software Foundation. > - * > - * This program is distributed in the hope that it will be useful, but > - * WITHOUT ANY WARRANTY; without even the implied warranty of > - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > - * General Public License version 2 for more details (a copy is included > - * in the LICENSE file that accompanied this code). > - * > - * You should have received a copy of the GNU General Public License > - * version 2 along with this program; If not, see > - * http://www.gnu.org/licenses/gpl-2.0.html > - * > - * GPL HEADER END > - */ > -/* > - * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. > - * Use is subject to license terms. > - */ > -/* > - * This file is part of Lustre, http://www.lustre.org/ > - * Lustre is a trademark of Sun Microsystems, Inc. > - * > - * libcfs/include/libcfs/linux/linux-time.h > - * > - * Implementation of portable time API for Linux (kernel and user-level). > - * > - * Author: Nikita Danilov > - */ > - > -#ifndef __LIBCFS_LINUX_LINUX_TIME_H__ > -#define __LIBCFS_LINUX_LINUX_TIME_H__ > - > -#ifndef __LIBCFS_LIBCFS_H__ > -#error Do not #include this file directly. #include instead > -#endif > - > -#define ONE_BILLION ((u_int64_t)1000000000) > -#define ONE_MILLION 1000000 > - > -#include > -#include > -#include > -#include > - > -/* > - * post 2.5 kernels. > - */ > - > -#include > - > -/* > - * One jiffy > - */ > -#define CFS_TICK (1UL) > - > -#define CFS_DURATION_T "%ld" > - > -#endif /* __LIBCFS_LINUX_LINUX_TIME_H__ */ > diff --git a/drivers/staging/lustre/lustre/ptlrpc/pinger.c b/drivers/staging/lustre/lustre/ptlrpc/pinger.c > index 3f17c673d1b8..89eef8ec7df4 100644 > --- a/drivers/staging/lustre/lustre/ptlrpc/pinger.c > +++ b/drivers/staging/lustre/lustre/ptlrpc/pinger.c > @@ -251,7 +251,7 @@ static void ptlrpc_pinger_main(struct work_struct *ws) > * we will SKIP the next ping at next_ping, and the > * ping will get sent 2 timeouts from now! Beware. > */ > - CDEBUG(D_INFO, "next wakeup in " CFS_DURATION_T " (%ld)\n", > + CDEBUG(D_INFO, "next wakeup in %ld (%ld)\n", > time_to_next_wake, > this_ping + PING_INTERVAL * HZ); > } while (time_to_next_wake <= 0); > > >