Message ID | 20191108125120.v2.20.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="kzOQOisk"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 478rvK3Fp8z9sPL for <incoming@patchwork.ozlabs.org>; Sat, 9 Nov 2019 07:09:01 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 32042C21ECA; Fri, 8 Nov 2019 20:02:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 339FEC21F74; Fri, 8 Nov 2019 19:56:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 43BE0C21F78; Fri, 8 Nov 2019 19:55:59 +0000 (UTC) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by lists.denx.de (Postfix) with ESMTPS id DE36FC21F05 for <u-boot@lists.denx.de>; Fri, 8 Nov 2019 19:55:09 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id p6so7636496iod.7 for <u-boot@lists.denx.de>; Fri, 08 Nov 2019 11:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fLhCaK1+9l+u6aDlEfUvbhwbA3X0fQnomw72gU2lWp4=; b=kzOQOiskBOnPu4U0JQPw/fDfPkxgqiwkT9vGFU5CBGOZ3fZ265jNYZZJ8N3WAvYFMx hReJam8x5oe3CPfS8fRlhNt59uTbiTqExMK+2SaXzOJd1Npuhhtvd0V0yE9qco56vRS+ q/tf5hl0dKckgUlCZ4LsNwf9qoJN2KxUTmFyY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fLhCaK1+9l+u6aDlEfUvbhwbA3X0fQnomw72gU2lWp4=; b=mtBKdi1UJbLakNFcT2pbGkPbUGTXKi/XOBj1uF2MJwjpaeU1//19PPlLc57GTmKcco 2yy2I801F49exvaENl9PkQl9KM/d1nw5SmbptzDCemTEGI2/XZXmNlxhWhafALRpjB8C +4ge31f2iQpWzlD4oWyMxnAIb7mtICJMX6yTMVZoMQ6PBAOKw088HRkxTWPO8k6SQ0/s rDGSgxr+/tWw7dpqESoKPpuUc/2ayWv5p5L1T+OYJgbW47ddCk2ePKH66S9R+R0dISlW 3pFvhPqqJYVazzC3vZBWflgJg/HWf9FD1tsjdIxj43sTDrsp3Rk53o3ei1XW0ow0/1qB oqqA== X-Gm-Message-State: APjAAAVyv1vRufkkADJtSB8WYMK/wzXV5EUHYmy5AxBfYs6uV7+gcSwP Un17VyWRG00pCGqp9hmCe+95m1cAW6Tl4Q== X-Google-Smtp-Source: APXvYqwSoIz4ReZZVrXdSPYCfDu1qyoG45Q+nIN6hbuT7AOuESoKOX01byeg0IMr4ttGBoRJ7FZa/g== X-Received: by 2002:a6b:b9d5:: with SMTP id j204mr11886021iof.129.1573242908688; Fri, 08 Nov 2019 11:55:08 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id l205sm622306ill.50.2019.11.08.11.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 11:55:08 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Fri, 8 Nov 2019 12:53:27 -0700 Message-Id: <20191108125120.v2.20.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191108195348.110648-1-sjg@chromium.org> References: <20191108195348.110648-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH v2 20/41] common: Move timer_get_us() function out of common.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
common: Further reduce common.h
|
expand
|
On Fri, Nov 08, 2019 at 12:53:27PM -0700, Simon Glass wrote: > This function belongs in time.h so move it over and update the comment > style. > > Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/include/common.h b/include/common.h index 091b54787f..e68bed6407 100644 --- a/include/common.h +++ b/include/common.h @@ -251,9 +251,6 @@ void irq_install_handler(int, interrupt_handler_t *, void *); void irq_free_handler (int); void reset_timer (void); -/* Return value of monotonic microsecond timer */ -unsigned long timer_get_us(void); - void enable_interrupts (void); int disable_interrupts (void); diff --git a/include/time.h b/include/time.h index 0b3835f053..14d3f4298b 100644 --- a/include/time.h +++ b/include/time.h @@ -95,4 +95,11 @@ ulong ticks2usec(unsigned long ticks); */ void wait_ticks(unsigned long ticks); +/** + * timer_get_us() - Get monotonic microsecond timer + * + * @return value of monotonic microsecond timer + */ +unsigned long timer_get_us(void); + #endif /* _TIME_H */
This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: None include/common.h | 3 --- include/time.h | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-)