wait_time = rtas_busy_delay_time(error); if (wait_time) { /* This is boot time so we spin. */
udelay(wait_time*1000);
}
} while (wait_time && (get_tb() < max_wait_tb));
if (error != 0) {
printk_ratelimited(KERN_WARNING "error: reading the clock failed (%d)\n",
error); return 0;
}
/* NOTE: get_rtc_time will get an error if executed in interrupt context * and if a delay is needed to read the clock. In this case we just * silently return without updating rtc_tm.
*/ void rtas_get_rtc_time(struct rtc_time *rtc_tm)
{ int ret[8]; int error; unsignedint wait_time;
u64 max_wait_tb;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.