when to switch from early_ioremap to ioremap

From: Olaf Hering
Date: Tue Oct 23 2012 - 15:42:33 EST



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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/