Message ID | 20190930144112.175618-21-sjg@chromium.org |
---|---|
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 (mailfrom) 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="FVpu2Zur"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46hlg843VSz9s7T for <incoming@patchwork.ozlabs.org>; Tue, 1 Oct 2019 00:49:56 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1C602C21E08; Mon, 30 Sep 2019 14:48:20 +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 52301C21C93; Mon, 30 Sep 2019 14:42:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 17563C21EBA; Mon, 30 Sep 2019 14:41:39 +0000 (UTC) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by lists.denx.de (Postfix) with ESMTPS id F41F8C21E49 for <u-boot@lists.denx.de>; Mon, 30 Sep 2019 14:41:35 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id w12so10842539iol.11 for <u-boot@lists.denx.de>; Mon, 30 Sep 2019 07:41:35 -0700 (PDT) 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=6jewAi2pWGlaIssZD/wnCSrccycsfGwTQmoTP5b9sGk=; b=FVpu2ZurxrJl1fZzJWcASlX3gLP3KYqyt02oI0ZZITip8zVCMuQSsqrJYy/KDO9eO9 rjLDE3Dhhuy74yTJwUSQrTAnGIxKFTTvPaoCdWhRcRl1AbTf/oYfjXQB8Pjy7t4OkgwQ FQwvzrApJUTnKcQgo7IghQ7z/uK5B7o1vj7p0= 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=6jewAi2pWGlaIssZD/wnCSrccycsfGwTQmoTP5b9sGk=; b=QSLLKVlHNTFuKbdHkROtCGFuqTDxKTNN+0aAW6tUUB6KrZs5yDkyywu0F6L1DdAaLE Bhqf8+elV2pLqCnit+EYOzDYqtZjZgP0JW6PBG64je7uxVehqiER+5mG8XhXk01SQ3/d Ur97Em/gNHeMzylk60OR+M3zZ0lObbTeyy5AcXFH36pQY3oVow9oy0HI2ULluMHwy3oY D2NNoZZIjdaO1cgiDbz7L89CCfLmp4NAPPlcDDIlyajSs9fpnSWaS8hnh2PSVUdvgew+ UVjZ+BCseUNKWGzE2qIlfsMj+Njaz23t4UqEJHNXkH2DIFdYY1mW8n2+6M1bWd5u9jj6 yZYQ== X-Gm-Message-State: APjAAAWOALIEZEhMd3jfCfzD9ZvAt0u3jbBG3nv3+MiJRUoes+V9qt/l DmitMLsl2sYhkb1T4n4UpZQEHXy9doY= X-Google-Smtp-Source: APXvYqyvODO0lLzZE2oBqPho85P2uiobqro1kpS6TYGXawYfEAOGitv7ZmcKOzWIQKCKNkIZNfRLXQ== X-Received: by 2002:a5e:c745:: with SMTP id g5mr21417922iop.9.1569854494758; Mon, 30 Sep 2019 07:41:34 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id c4sm5892885ioa.70.2019.09.30.07.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 07:41:34 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 30 Sep 2019 08:40:51 -0600 Message-Id: <20190930144112.175618-21-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog In-Reply-To: <20190930144112.175618-1-sjg@chromium.org> References: <20190930144112.175618-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH 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
|
diff --git a/include/common.h b/include/common.h index 091b54787f7..e68bed64078 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 e740858f816..4d16f12d76a 100644 --- a/include/time.h +++ b/include/time.h @@ -94,4 +94,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> --- include/common.h | 3 --- include/time.h | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-)