Message ID | 20191114125724.v4.21.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid |
---|---|
State | Accepted |
Commit | f0143a86af1cafff17ac9893015374f0f2f6ae06 |
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="k8rKZxSZ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47DXhB2rHwz9s7T for <incoming@patchwork.ozlabs.org>; Fri, 15 Nov 2019 07:12:10 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D2224C21E2B; Thu, 14 Nov 2019 20:04:51 +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 62F5DC21EBD; Thu, 14 Nov 2019 19:58:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 060A9C21CB1; Thu, 14 Nov 2019 19:58:50 +0000 (UTC) Received: from mail-il1-f194.google.com (mail-il1-f194.google.com [209.85.166.194]) by lists.denx.de (Postfix) with ESMTPS id 1FA36C21C3F for <u-boot@lists.denx.de>; Thu, 14 Nov 2019 19:58:36 +0000 (UTC) Received: by mail-il1-f194.google.com with SMTP id d83so6469723ilk.7 for <u-boot@lists.denx.de>; Thu, 14 Nov 2019 11:58:36 -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=mZ4ix4QVCUYgs5aDPFDfl4D848f7t2pSipUZPWne7Ug=; b=k8rKZxSZCPMoKyK2KSHqpZsrM3nCdCww5db/X3LEBlnK6MeaWD/hS9/tCwGBaLi5aW 5PLk1TkjDVdKOYD9jMOPO0hsqBSy9SZGujv5Np0oga4CzOQsk8vwvkrogCWIxLc+E3i/ WkpSbnFFiiuzmK01awSsF/lqa3UQe3ALLJBNI= 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=mZ4ix4QVCUYgs5aDPFDfl4D848f7t2pSipUZPWne7Ug=; b=HL/5FJdQ0XH9ejJDVufqRpxuCDl6U64SE+ABGs4iMbGUZRImqWrJD3wcKpvrTWq9yn o4BUIwLnzWmFYQocX9T97RsngMpPpLs30EVNwWucXmZxzBDUWneQjcGrYgmVxm18w7RR vZMCz7bV+Fr4PIjjkX/hnzWA9n+RFOHweg2kyYpOVmRnS88YJqgrl9VcjoIuJXdO4SHy OJZ82LnYtNWSL9HXf8r0X8dKbdQw6MwqbiDS5H8u7mjGETlCuOxVZ0jr8LBEstUwOrmA 5a5WCWOhCt36GcK4i3ndII7bdUnA5YBOCVq02/szDl4JP9a8pV9x48Q0vUxUQ4Vs+kc+ gvIQ== X-Gm-Message-State: APjAAAUXrAb8c6na92Qz8Ptsl+Xs8w3kucuBGP0K9W90+H5VDqx4AP9X 0FSAgpAKHgdmIk8apEvNP9E5+xpTI1Y= X-Google-Smtp-Source: APXvYqwF+awgCZqAjeoMH0r8d+6x8G1hQ04c2tiReVp2RQT5lw8DLXqJRdyUAAICfmxRD5xRdqB8+A== X-Received: by 2002:a92:8394:: with SMTP id p20mr12244753ilk.73.1573761514923; Thu, 14 Nov 2019 11:58:34 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id c83sm652546iof.48.2019.11.14.11.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 11:58:34 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Thu, 14 Nov 2019 12:57:29 -0700 Message-Id: <20191114125724.v4.21.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191114195751.30357-1-sjg@chromium.org> References: <20191114195751.30357-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH v4 21/42] 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 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 31d386729e..875a2b293e 100644 --- a/include/time.h +++ b/include/time.h @@ -96,4 +96,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 */