All of lore.kernel.org
 help / color / mirror / Atom feed
* ARM, time: alternative of using udelay() before init time
@ 2014-10-16 15:10 Oleksandr Tyshchenko
  2014-10-17 12:58 ` Julien Grall
  0 siblings, 1 reply; 7+ messages in thread
From: Oleksandr Tyshchenko @ 2014-10-16 15:10 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Ian Campbell, Stefano Stabellini


[-- Attachment #1.1: Type: text/plain, Size: 844 bytes --]

Hi, all.

I have a question about using udelay() (located in arch/arm/time.c) in XEN.
I have found out that I can't use this function before call
init_xen_time(). Otherwise udelay() hangs,
since get_s_time() returns wrong result.
Even if we come from U-Boot with ARCH timer enabled (which also not always
true) the global variable "cpu_khz" not initialized yet.

For example, a some UART driver has init_preirq callback where we need to
call udelay(X) after changing baudrate before continuing init sequence. But
we can't, since the console_init_preirq() called a bit early than
init_xen_time().

So, could you please explain me is there other method I can use before init
time subsystem.
Is the simple while loop the only way?

Thank you.

-- 

Oleksandr Tyshchenko | Embedded Dev
GlobalLogic
www.globallogic.com
<http://www.globallogic.com/>

[-- Attachment #1.2: Type: text/html, Size: 2620 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-20 12:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 15:10 ARM, time: alternative of using udelay() before init time Oleksandr Tyshchenko
2014-10-17 12:58 ` Julien Grall
2014-10-17 16:12   ` Oleksandr Tyshchenko
2014-10-17 16:22     ` Julien Grall
2014-10-20 10:12       ` Oleksandr Tyshchenko
2014-10-20 12:30         ` Julien Grall
2014-10-20 12:35           ` Oleksandr Tyshchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.