You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notrace unsigned long long sched_clock(void)
{
if (__USE_RTC())
return get_rtc();
return mulhdu(get_tb() - boot_tb, tb_to_ns_scale) << tb_to_ns_shift;
}
/* Accessor functions for the timebase (RTC on 601) registers. */
/* If one day CONFIG_POWER is added just define __USE_RTC as 1 */
#ifdef CONFIG_6xx
#define __USE_RTC() (cpu_has_feature(CPU_FTR_USE_RTC))
#else
#define __USE_RTC() 0
#endif
When called early, __USE_RTC() returns true on any 6xx leading to calling get_rtc() which is invalid except on 601.
The text was updated successfully, but these errors were encountered:
printk() calls sched_clock():
When called early, __USE_RTC() returns true on any 6xx leading to calling get_rtc() which is invalid except on 601.
The text was updated successfully, but these errors were encountered: