From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtRkF-0007K6-Av for barebox@lists.infradead.org; Tue, 12 Feb 2019 06:40:41 +0000 Received: by mail-pl1-x641.google.com with SMTP id f90so813198plb.10 for ; Mon, 11 Feb 2019 22:40:39 -0800 (PST) From: Andrey Smirnov Date: Mon, 11 Feb 2019 22:40:19 -0800 Message-Id: <20190212064022.26154-6-andrew.smirnov@gmail.com> In-Reply-To: <20190212064022.26154-1-andrew.smirnov@gmail.com> References: <20190212064022.26154-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/8] include: Add definitnion for HZ To: barebox@lists.infradead.org Cc: Andrey Smirnov Add definitnion for HZ to simplify porting Linux kernel code. Signed-off-by: Andrey Smirnov --- include/clock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/clock.h b/include/clock.h index 5f2f53ab6..211748f3a 100644 --- a/include/clock.h +++ b/include/clock.h @@ -43,6 +43,8 @@ void mdelay_non_interruptible(unsigned long msecs); #define MSECOND ((uint64_t)(1000 * 1000)) #define USECOND ((uint64_t)(1000)) +#define HZ SECOND + extern uint64_t time_beginning; /* -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox