xen/arm: Replace ioremap_attr(PAGE_HYPERVISOR_NOCACHE) call by ioremap_nocache

ioremap_cache is a wrapper of ioremap_attr(...).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Julien Grall authored and Stefano Stabellini committed 2017-09-19 17:26:05 -07:00
1 parent a0c039a379
commit 64cf3181e4
2 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ static int exynos5_init_time(void)
dprintk(XENLOG_INFO, "mct_base_addr: %016llx size: %016llx\n",
mct_base_addr, size);
mct = ioremap_attr(mct_base_addr, size, PAGE_HYPERVISOR_NOCACHE);
mct = ioremap_nocache(mct_base_addr, size);
if ( !mct )
{
dprintk(XENLOG_ERR, "Unable to map MCT\n");
+2 -4
View File
@@ -51,8 +51,7 @@ static int omap5_init_time(void)
unsigned int sys_clksel;
unsigned int num, den, frac1, frac2;
ckgen_prm_base = ioremap_attr(OMAP5_CKGEN_PRM_BASE,
0x20, PAGE_HYPERVISOR_NOCACHE);
ckgen_prm_base = ioremap_nocache(OMAP5_CKGEN_PRM_BASE, 0x20);
if ( !ckgen_prm_base )
{
dprintk(XENLOG_ERR, "%s: PRM_BASE ioremap failed\n", __func__);
@@ -64,8 +63,7 @@ static int omap5_init_time(void)
iounmap(ckgen_prm_base);
rt_ct_base = ioremap_attr(REALTIME_COUNTER_BASE,
0x20, PAGE_HYPERVISOR_NOCACHE);
rt_ct_base = ioremap_nocache(REALTIME_COUNTER_BASE, 0x20);
if ( !rt_ct_base )
{
dprintk(XENLOG_ERR, "%s: REALTIME_COUNTER_BASE ioremap failed\n", __func__);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.