x86/cpu/amd: Enable the fixed Instructions Retired counter IRPERF
[linux-2.6-microblaze.git] / kernel / iomem.c
index 93c2644..62c92e4 100644 (file)
@@ -121,7 +121,7 @@ EXPORT_SYMBOL(memremap);
 
 void memunmap(void *addr)
 {
-       if (is_vmalloc_addr(addr))
+       if (is_ioremap_addr(addr))
                iounmap((void __iomem *) addr);
 }
 EXPORT_SYMBOL(memunmap);