Skip to content

Commit e035389

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/setup: use virtual address for STSI instruction
Provide virtual memory pointer for system-information block. Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 5caca32 commit e035389

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/s390/kernel/setup.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -879,14 +879,12 @@ static void __init setup_randomness(void)
879879
{
880880
struct sysinfo_3_2_2 *vmms;
881881

882-
vmms = (struct sysinfo_3_2_2 *) memblock_phys_alloc(PAGE_SIZE,
883-
PAGE_SIZE);
882+
vmms = memblock_alloc(PAGE_SIZE, PAGE_SIZE);
884883
if (!vmms)
885884
panic("Failed to allocate memory for sysinfo structure\n");
886-
887885
if (stsi(vmms, 3, 2, 2) == 0 && vmms->count)
888886
add_device_randomness(&vmms->vm, sizeof(vmms->vm[0]) * vmms->count);
889-
memblock_free((unsigned long) vmms, PAGE_SIZE);
887+
memblock_free_ptr(vmms, PAGE_SIZE);
890888
}
891889

892890
/*

0 commit comments

Comments
 (0)