mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fix timer code.
This commit is contained in:
parent
acb11fd1f2
commit
1a900329b0
1 changed files with 2 additions and 2 deletions
|
@ -7,13 +7,13 @@
|
|||
|
||||
unsigned get_hz(void)
|
||||
{
|
||||
return bsp_clock_speed() >> 16;
|
||||
return bsp_clock_speed();
|
||||
}
|
||||
|
||||
unsigned ticks_since_boot(void)
|
||||
{
|
||||
extern unsigned long long _timebase(void);
|
||||
return (unsigned) (_timebase() >> 16);
|
||||
return (unsigned) (_timebase());
|
||||
}
|
||||
|
||||
void sleep_ticks(unsigned ticks)
|
||||
|
|
Loading…
Add table
Reference in a new issue