cpu.c (9d922450aa9944ecf8c249c892078cda80f40e02) | cpu.c (c87dc38d8f860710f5f624d9dae6cefded285b8d) |
---|---|
1/* 2 * Copyright (c) 2011 The Chromium OS Authors. 3 * SPDX-License-Identifier: GPL-2.0+ 4 */ 5#define DEBUG 6#include <common.h> 7#include <dm.h> 8#include <errno.h> --- 125 unchanged lines hidden (view full) --- 134 } 135 os_close(fd); 136 137done: 138 gd->fdt_blob = blob; 139 140 return 0; 141} | 1/* 2 * Copyright (c) 2011 The Chromium OS Authors. 3 * SPDX-License-Identifier: GPL-2.0+ 4 */ 5#define DEBUG 6#include <common.h> 7#include <dm.h> 8#include <errno.h> --- 125 unchanged lines hidden (view full) --- 134 } 135 os_close(fd); 136 137done: 138 gd->fdt_blob = blob; 139 140 return 0; 141} |
142 143ulong timer_get_boot_us(void) 144{ 145 static uint64_t base_count; 146 uint64_t count = os_get_nsec(); 147 148 if (!base_count) 149 base_count = count; 150 151 return (count - base_count) / 1000; 152} |
|