linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* when to switch from early_ioremap to ioremap
@ 2012-10-23 19:42 Olaf Hering
  2012-10-23 20:54 ` Yinghai Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2012-10-23 19:42 UTC (permalink / raw)
  To: linux-kernel


To obtain an address to a PFN in init_hypervisor_platform (called from
arch/x86/kernel/setup.c:setup_arch) I use early_ioremap. Later the
address to that PFN needs to be obtained with ioremap, and early_iounmap
needs to be called on the first address.

When is the time to obtain and use the new pointer, and to release to
old pointer? Right now I do that in the pci-device setup code, which
happens to work. Unfortunately early_ioremap is not mentioned in
Documentation/, hence the question.

Olaf

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

end of thread, other threads:[~2012-10-23 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-23 19:42 when to switch from early_ioremap to ioremap Olaf Hering
2012-10-23 20:54 ` Yinghai Lu
2012-10-23 21:50   ` Olaf Hering
2012-10-23 22:02     ` Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).