]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move get_ticks() function out of common.h
authorSimon Glass <sjg@chromium.org>
Thu, 14 Nov 2019 19:57:30 +0000 (12:57 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 2 Dec 2019 23:23:13 +0000 (18:23 -0500)
This function belongs in time.h so move it over and add a comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
68 files changed:
arch/arm/cpu/arm920t/ep93xx/timer.c
arch/arm/cpu/arm920t/imx/timer.c
arch/arm/cpu/arm926ejs/armada100/timer.c
arch/arm/cpu/arm926ejs/lpc32xx/timer.c
arch/arm/cpu/arm926ejs/mx27/timer.c
arch/arm/cpu/arm926ejs/mxs/timer.c
arch/arm/cpu/arm926ejs/spear/timer.c
arch/arm/cpu/armv7/arch_timer.c
arch/arm/cpu/armv7/iproc-common/timer.c
arch/arm/cpu/armv7/s5p-common/timer.c
arch/arm/cpu/armv7/stv0991/timer.c
arch/arm/cpu/armv7/sunxi/timer.c
arch/arm/cpu/armv7/vf610/timer.c
arch/arm/cpu/armv7m/systick-timer.c
arch/arm/cpu/sa1100/timer.c
arch/arm/mach-at91/arm920t/timer.c
arch/arm/mach-davinci/timer.c
arch/arm/mach-omap2/timer.c
arch/arm/mach-orion5x/timer.c
arch/arm/mach-rmobile/timer.c
arch/arm/mach-socfpga/clock_manager_gen5.c
arch/arm/mach-sunxi/dram_helpers.c
arch/arm/mach-sunxi/p2wi.c
arch/arm/mach-sunxi/rsb.c
arch/arm/mach-tegra/clock.c
arch/microblaze/cpu/timer.c
arch/mips/mach-jz47xx/jz4780/timer.c
arch/nds32/cpu/n1213/ag101/timer.c
arch/sh/lib/time_sh2.c
arch/xtensa/lib/time.c
board/armltd/integrator/timer.c
board/broadcom/bcmstb/bcmstb.c
board/xilinx/versal/board.c
common/autoboot.c
common/bootretry.c
common/cli_readline.c
common/iotrace.c
drivers/clk/clk_stm32mp1.c
drivers/mailbox/mailbox-uclass.c
drivers/misc/tegra186_bpmp.c
drivers/mmc/bcm2835_sdhci.c
drivers/mmc/mxcmmc.c
drivers/net/pic32_eth.c
drivers/nvme/nvme.c
drivers/power/pmic/stpmic1.c
drivers/sound/broadwell_i2s.c
drivers/spi/ath79_spi.c
drivers/spi/exynos_spi.c
drivers/spi/rk_spi.c
drivers/spi/tegra114_spi.c
drivers/spi/tegra20_sflash.c
drivers/spi/tegra20_slink.c
drivers/spi/tegra210_qspi.c
drivers/spi/uniphier_spi.c
drivers/spi/zynq_spi.c
drivers/timer/tsc_timer.c
drivers/video/sunxi/sunxi_display.c
drivers/video/sunxi/sunxi_dw_hdmi.c
include/common.h
include/time.h
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_console.c
lib/time.c
lib/trace.c
lib/uuid.c
net/nfs.c
post/post.c
test/time_ut.c

index 49bf49bbd3685946a071dea38c9ef9e930f22a3e..4829c996be880839bd85ef1713320dc29f4be335 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <linux/types.h>
 #include <asm/arch/ep93xx.h>
 #include <asm/io.h>
index 96fff3f683f892b816c598e03a2847f3b64fd7d3..17081ddb6d8d5f7e7d40860b78670662e3239e33 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #if defined (CONFIG_IMX)
 
 #include <asm/arch/imx-regs.h>
index d2ecbd07e2fb58b0a50680c76ee99971550286c8..6c6948a8ef4cee45b12a58ee0452ed765df19601 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/armada100.h>
 
index b3ca68604098137a1dbddbaf9cd8cf371ca4033b..3a896d10ca58c1813d9028074b4652d436acc0db 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/timer.h>
index 94b5d454e9256dc95c92f4687beb1951cb715385..f51f0df8ec78a1ba2d4e469812c69fa97f5141f9 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 
index 7492ba46dc720619e5275073e72baa243d31b85d..226401dd6e2c4679d186983164c9f82566c65908 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index e7b5bda1bc9c6fd0c8e81e46852a55ad35c9a0db..28c09e9fd67c99d7ecece6753399789175743d69 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_gpt.h>
index 5de63053d5934ad8c3fac1dcf27273c014e4a4eb..2eb571050a33aa8911e616893da470f84dd6e889 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <bootstage.h>
index aaa767db13c0d0a0f7357f799af8700b14a4663d..668b5e11a688ec37536765c06f72b909e7651791 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/iproc-common/timer.h>
 #include <asm/iproc-common/sysmap.h>
index 0048cd8067c67a5c0c429718d8324c10f34db8b0..e54cfb06dcbf1d08a31ae090191fe853d37181a2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/pwm.h>
 #include <asm/arch/clk.h>
index d1b763df8e38e89136273140059189996d2b3e8a..695bdd7a5cc0a87da08403039fc1337a06d5fe55 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch-stv0991/hardware.h>
 #include <asm/arch-stv0991/stv0991_cgu.h>
index 304c1ac5f9eaafcba81423cf2013c6efb0e5857a..6bda5fbbb6610a99d65952910ddb7bdfa78a1399 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/timer.h>
 
index 821a279b630eac63133b13e78bc1620fb169dcf4..f858de953d4316b80d400f5fccb37c4f9ac88115 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <asm/arch/imx-regs.h>
index d04f67ae164738f8bf29c42305044ac03459d64f..5c310d306d0e1fff1acf6de1713a39aeedc09801 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 0fac5c1707fd3140ba62b6332e9a3577a92a5df1..c6b1b2c177512b68b2ec9e2e1f3c951284712bc0 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <SA-1100.h>
+#include <time.h>
 
 static ulong get_timer_masked (void)
 {
index 6db541a7b3b4c359cff9dcb7e042fc161810bf86..3aef9538b4a06ec6d78c09aff4d885f4079d6e48 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index 99f1eabf5f89a178e6777b3ccf4a5d8b60a9cc09..9846463c606dce08d87f2537a8bb1bbc70110619 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/timer_defs.h>
 #include <div64.h>
index 87b674e6948189a713c85dc6463ac0f5ae05660e..dbb68f718d6482d1b1dd8386b8e301c1aaa9efb1 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
index 6aaf94ae0872c781310c7aa7c5fdac38eb38dcb2..9da978382206bcb0087e3f3caaaa54b489f0b1d9 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 
 #define UBOOT_CNTR     0       /* counter to use for uboot timer */
index bf74955793fe591cf7e189db2bace95f9667352f..9fcab446a5d8050fcc03233cbed48cb138c4d849 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch-armv7/globaltimer.h>
 #include <asm/arch/rmobile.h>
index 3a64600861228e2b9d656e4d3cc50be8d2874561..54a821a27f715a221c845e54befbdfbcf9c4c1b6 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <asm/arch/clock_manager.h>
index 239ab421a8b8bde84274ddcd6915b6f788d71071..520b597fcc01585dbc20d6e782f7bcaa7326bb5b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/barriers.h>
 #include <asm/io.h>
 #include <asm/arch/dram.h>
index e84e1d8d5c872d058582e8f527cfbdc46b176efe..7c5c12254ea1e8b39b5124bc44aa3a0149735a64 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/gpio.h>
index 005ca58db5808868333ec105e07c92d65b881161..01bb09b7478e8b1895681978dd4e0f727dc59482 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <time.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/prcm.h>
index e539ad8b30a7bbe532e267cd2eb0679252e04a0c..31b6aa2cfc88edfa271869d2d19ed1346f67fb10 100644 (file)
@@ -9,6 +9,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/tegra.h>
index 58e5c307508528b81f9ba42419f361ffc0406f19..805eac7fa3f233f49b33f16925395786eaf2e279 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <time.h>
 #include <asm/microblaze_timer.h>
 #include <asm/microblaze_intc.h>
 
index a689b9d71acd7ace433120d1d72a80f6b4c2e5f0..988ebd26715ca89064e45f0e393dabdf8ef05c64 100644 (file)
@@ -9,6 +9,7 @@
 #include <config.h>
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/mipsregs.h>
 #include <mach/jz4780.h>
index dfec5b3e96b563892022ef349efb4d7670018b24..cbfe07e35141a39a8c33b8797161f023e8900947 100644 (file)
@@ -9,6 +9,7 @@
  */
 #ifndef CONFIG_TIMER
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <faraday/fttmr010.h>
 
index 14bef6b45bc7cbc6b1fc0485494681f04365ed50..d82c1d2feb371f825e98dc764481b8e836e06f0e 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 
index 81459b4c287239f6ec6584ad5182285af760be6a..62bbe37b806272fe90616339a03f3e1628801c2e 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/global_data.h>
 #include <linux/stringify.h>
 
index 7ecfa49c70ad50c5305569673d686d4bc97c0df8..e65ae997fd648816459f735f24ee1cb4622dcb48 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <time.h>
 
 #ifdef CONFIG_ARCH_CINTEGRATOR
 #define DIV_CLOCK_INIT 1
index 5fc2c0591b84159b2bea60774517585d273e7b1a..23500dfa698c074c4bf9f9068927270d8e7c3ba1 100644 (file)
@@ -6,6 +6,7 @@
  * Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
  */
 
+#include <time.h>
 #include <linux/types.h>
 #include <common.h>
 #include <env.h>
index abdd580c012bf51d4df30a4ecebbe38d08404bb4..75056aa3d9f43cd5ff996790a896af79ff1eccce 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <malloc.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
index b28bd6823d824e73557b64b66fd6ad202ad8a592..8faac2005dfeced5ced8dd5e442b00e51a1b54d1 100644 (file)
@@ -15,6 +15,7 @@
 #include <memalign.h>
 #include <menu.h>
 #include <post.h>
+#include <time.h>
 #include <u-boot/sha256.h>
 #include <bootcount.h>
 
index 47aaaa82201ea60a9bf470d1771032f41c4f1766..dac891fbc5e3fa0cc01a15e811a2442518eee50c 100644 (file)
@@ -9,6 +9,7 @@
 #include <cli.h>
 #include <env.h>
 #include <errno.h>
+#include <time.h>
 #include <watchdog.h>
 
 #ifndef CONFIG_BOOT_RETRY_MIN
index ea510ed63956973638b0af00cc82760905cea0aa..6ef7a3e564254233c9d08dd29a950f4040f707ce 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <bootretry.h>
 #include <cli.h>
+#include <time.h>
 #include <watchdog.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index ba955afc942a9c87e035eae3f5951e754ed5a271..295ee07b72473fc2c8b0ff3ff4ce811953f28a55 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <mapmem.h>
+#include <time.h>
 #include <asm/io.h>
 #include <u-boot/crc.h>
 
index e223f84eac028df663537532aa9734ba7a361658..3718970dc7c4d2754a936e2b7f9567d6ba3b1fcc 100644 (file)
@@ -10,6 +10,7 @@
 #include <regmap.h>
 #include <spl.h>
 #include <syscon.h>
+#include <time.h>
 #include <vsprintf.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 9fdb6279e4f3839222bb1d9f55c02db187c2edc0..5968c9b7eb67505fbae7c2f03edeab989d084c98 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <mailbox.h>
 #include <mailbox-uclass.h>
+#include <time.h>
 
 static inline struct mbox_ops *mbox_dev_ops(struct udevice *dev)
 {
index b3ed03e9dab38ccdfae69cb3c02c1a6c8e7e4037..89e27dd526afdec724b1eb6da96e46d9f30a687c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <mailbox.h>
index bc9ee95fd5cf84691a2f68a48ac696ab10229c68..39c93db275453ed47848653ce19ea843b381aa6c 100644 (file)
@@ -41,6 +41,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <sdhci.h>
+#include <time.h>
 #include <asm/arch/msg.h>
 #include <asm/arch/mbox.h>
 #include <mach/sdhci.h>
index dcf17c5d60e90a1569fd0dea00087375a0f665e4..269882b2027decfa146ae181c6407c2f7097e6ba 100644 (file)
@@ -23,6 +23,7 @@
 #include <part.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <time.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 5c706c04c5eb3360fd33a9dab572643ab8daba43..b0f767715459082bab931a5bd3b3ab6bbb0f944a 100644 (file)
@@ -9,6 +9,7 @@
 #include <net.h>
 #include <miiphy.h>
 #include <console.h>
+#include <time.h>
 #include <wait_bit.h>
 #include <asm/gpio.h>
 
index f915817aaa431cfbc4f0fad5457ef8674f20d546..cddcc2f11d7b24061d4e0c9bace768bce0099bfd 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <memalign.h>
 #include <pci.h>
+#include <time.h>
 #include <dm/device-internal.h>
 #include "nvme.h"
 
index de31934f41a503874e73bd336576ff0b74b26721..2297af4157a4513fc631174cd4708026bd85f64b 100644 (file)
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <misc.h>
 #include <sysreset.h>
+#include <time.h>
 #include <dm/device.h>
 #include <dm/lists.h>
 #include <power/pmic.h>
index 998792b2399721d91914c9d2566b1fae1ac8d24b..3d577401bdde1cea273f469a1ea0bbce42b1448c 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <time.h>
 #include <asm/io.h>
 #include "broadwell_i2s.h"
 
index 207069218f6ce445728f10570f23df33a29da0cd..0b8ebaabe9bb4088c63821c4718b594bb8c4e1b1 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index a9691c7603a7b161a3421d94f12668b349aefaf9..d682a11013a4b35753666ae426423e952590f3ff 100644 (file)
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <fdtdec.h>
+#include <time.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
index a68553b75bf1d58226cc3669d1553d15a83402ae..c04535ac4455e19151e4ff9c60449d61797388da 100644 (file)
@@ -16,6 +16,7 @@
 #include <dt-structs.h>
 #include <errno.h>
 #include <spi.h>
+#include <time.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index 5c35c22592cf0df5bbcf96c0dec67fdf44a911e7..bb34b20f545531d28e6b50b13cbeb1b80116e4ce 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
index 567e33f156a96940b478160a1644684564929328..0e68d33be65ec9eac39966feb24f5b90f50d9d42 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
index d55e833cc24eca636ad614a464b7704b80cea557..ae2fc3e76dce7e99d5f101d4adc41ab6a4579d25 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
index e4b82767f82edadaa0f1a7f295e9daefa23015d1..d82ecaa61fabfea420fe4f5fe5ea842a2064203c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
index ef02d07aa4636b06aea88dfaee3604d45fd3dfb2..e47b969864b9962680c29d3ff9a3d7ab8515d19b 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <linux/bitfield.h>
 #include <linux/io.h>
 #include <spi.h>
index 2a02942d413ec751db5cb14367fd7c155fc5cf87..0b2b2f481037e02f06e00e55ba0fe1d8cd239d6b 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <spi.h>
+#include <time.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 637c8ff25a5cab47aee23201d28a0ef26de11b41..0df551f94cce09167a072125f1f98c67ec3fdf50 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <malloc.h>
+#include <time.h>
 #include <timer.h>
 #include <asm/cpu.h>
 #include <asm/io.h>
index 46436b88c57e15c7e715aa9b6d8a5d416610f1fd..c45b3ebe6ea5a304a0a99417a4a4c476e923363d 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <efi_loader.h>
+#include <time.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/display.h>
index 66a319187c291854c6dc0633e7a1bf05485a1379..c87c919a52a148233902fce0ea06d6f32b4c6721 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dw_hdmi.h>
 #include <edid.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/lcdc.h>
index e68bed64078ed010f94aafbfd7041ba4e525cbe7..cc5f13ec7e76f1cb95f6dcac4f7886919de20a2c 100644 (file)
@@ -3,8 +3,8 @@
  * Common header file for U-Boot
  *
  * This file still includes quite a bit of stuff that should be in separate
- * headers like command.h, cpu.h and timer.h. Please think before adding more
- * things. Patches to remove things are welcome.
+ * headers like command.h and cpu.h. Please think before adding more things.
+ * Patches to remove things are welcome.
  *
  * (C) Copyright 2000-2009
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -281,9 +281,6 @@ enum {
  */
 int cleanup_before_linux_select(int flags);
 
-/* arch/$(ARCH)/lib/ticks.S */
-uint64_t get_ticks(void);
-
 /* lib/uuid.c */
 #include <uuid.h>
 
index 875a2b293ed4a8769a4700dd7a70d2ed485dce29..71446c317148a8f521d88d5234c993acf5e4aec6 100644 (file)
@@ -103,4 +103,14 @@ void wait_ticks(unsigned long ticks);
  */
 unsigned long timer_get_us(void);
 
+/**
+ * get_ticks() - Get the current tick value
+ *
+ * This is an internal value used by the timer on the system. Ticks increase
+ * monotonically at the rate given by get_tbclk().
+ *
+ * @return current tick value
+ */
+uint64_t get_ticks(void);
+
 #endif /* _TIME_H */
index ea52b9539d5b37384ede55777bafffaf0b62c6a1..265297ed46f9a431e603a13f078e8af75cf9a1e1 100644 (file)
@@ -9,6 +9,7 @@
 #include <div64.h>
 #include <efi_loader.h>
 #include <malloc.h>
+#include <time.h>
 #include <linux/libfdt_env.h>
 #include <u-boot/crc.h>
 #include <bootm.h>
index a55e4b33eced265b12a699ea5a078f1aba578414..218f7caa12f85051a099e00842d687d69c8f3011 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <charset.h>
+#include <time.h>
 #include <dm/device.h>
 #include <efi_loader.h>
 #include <env.h>
index f30fc05804be9914d55973bd6163f1c46b0e30f8..75de48f90032cc1f213fedd5ca57c263cd2b1c9d 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <time.h>
 #include <timer.h>
 #include <watchdog.h>
 #include <div64.h>
index f2402b93593b3d84525f67b668ab05731acacde5..6716c7c2f098aa07f2a08449695417ef347421d7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <mapmem.h>
+#include <time.h>
 #include <trace.h>
 #include <asm/io.h>
 #include <asm/sections.h>
index a48e19c06eafab6c39249f7a005b97298768d6e0..3d3c7abcaea3fbeb80e9682882285b4d58521bea 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <time.h>
 #include <linux/ctype.h>
 #include <errno.h>
 #include <common.h>
index aca0ca55f3f76749c8ff3d663b5d05eb68517b7e..97e62f1dcebae1bbde78ab9f0291ce719ce1ec89 100644 (file)
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -33,6 +33,7 @@
 #include <mapmem.h>
 #include "nfs.h"
 #include "bootp.h"
+#include <time.h>
 
 #define HASHES_PER_LINE 65     /* Number of "loading" hashes per line  */
 #define NFS_RETRY_COUNT 30
index fb751d9a83a5c14c6bce38ada5e3d2c803123e41..f27138ddaaf3bba4fa165e20c13de945cbbd85d4 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <env.h>
 #include <stdio_dev.h>
+#include <time.h>
 #include <watchdog.h>
 #include <div64.h>
 #include <post.h>
index 28c934e426820b5c90acd4ef95cef7c0e259a1e1..40a19a50d93b92c580df34625adab8805c3ac022 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
+#include <time.h>
 
 static int test_get_timer(void)
 {