common: Move get_tbclk() to time.h
This function related to timer and most of the timer functions are in time.h, so move this function there. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -153,7 +153,7 @@ unsigned long long get_ticks(void)
|
||||
* Return the timebase clock frequency
|
||||
* i.e. how often the timer decrements
|
||||
*/
|
||||
ulong get_tbclk (void)
|
||||
ulong get_tbclk(void)
|
||||
{
|
||||
unsigned long long tmp = CONFIG_SYS_HZ_CLOCK;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <pci.h>
|
||||
#include <time.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/mmu.h>
|
||||
#include <asm/fsl_pci.h>
|
||||
@@ -337,7 +338,7 @@ int get_clocks(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long get_tbclk (void)
|
||||
unsigned long get_tbclk(void)
|
||||
{
|
||||
void *fdt = get_fdt_virt();
|
||||
int cpus_node = fdt_path_offset(fdt, "/cpus");
|
||||
|
||||
Reference in New Issue
Block a user