Commit 87458ff4 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[S390] Change kernel_page_present coding style.

Make the inline assembly look like all others.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 2583d1ef
...@@ -314,21 +314,18 @@ int s390_enable_sie(void) ...@@ -314,21 +314,18 @@ int s390_enable_sie(void)
} }
EXPORT_SYMBOL_GPL(s390_enable_sie); EXPORT_SYMBOL_GPL(s390_enable_sie);
#ifdef CONFIG_DEBUG_PAGEALLOC #if defined(CONFIG_DEBUG_PAGEALLOC) && defined(CONFIG_HIBERNATION)
#ifdef CONFIG_HIBERNATION
bool kernel_page_present(struct page *page) bool kernel_page_present(struct page *page)
{ {
unsigned long addr; unsigned long addr;
int cc; int cc;
addr = page_to_phys(page); addr = page_to_phys(page);
asm("lra %1,0(%1)\n" asm volatile(
"ipm %0\n" " lra %1,0(%1)\n"
"srl %0,28" " ipm %0\n"
:"=d"(cc),"+a"(addr)::"cc"); " srl %0,28"
: "=d" (cc), "+a" (addr) : : "cc");
return cc == 0; return cc == 0;
} }
#endif /* CONFIG_HIBERNATION && CONFIG_DEBUG_PAGEALLOC */
#endif /* CONFIG_HIBERNATION */
#endif /* CONFIG_DEBUG_PAGEALLOC */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment