summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@linux.ibm.com>2021-10-07 12:14:09 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-10-26 15:21:28 +0200
commite035389b73b11e787cb58999d31532971f9eb950 (patch)
tree14be993552a65ae0821bbb60e43ebe263a0c5111 /arch/s390/kernel
parent5caca32fba20050caa938dd444eb19cdd320217c (diff)
downloadlinux-e035389b73b11e787cb58999d31532971f9eb950.tar.bz2
s390/setup: use virtual address for STSI instruction
Provide virtual memory pointer for system-information block. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/setup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 191fc96a41b2..5f0b0dca41eb 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -879,14 +879,12 @@ static void __init setup_randomness(void)
{
struct sysinfo_3_2_2 *vmms;
- vmms = (struct sysinfo_3_2_2 *) memblock_phys_alloc(PAGE_SIZE,
- PAGE_SIZE);
+ vmms = memblock_alloc(PAGE_SIZE, PAGE_SIZE);
if (!vmms)
panic("Failed to allocate memory for sysinfo structure\n");
-
if (stsi(vmms, 3, 2, 2) == 0 && vmms->count)
add_device_randomness(&vmms->vm, sizeof(vmms->vm[0]) * vmms->count);
- memblock_free((unsigned long) vmms, PAGE_SIZE);
+ memblock_free_ptr(vmms, PAGE_SIZE);
}
/*