mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
s390: Optimize __pa/__va when RANDOMIZE_IDENTITY_BASE is off
Use a zero identity base when CONFIG_RANDOMIZE_IDENTITY_BASE is off, slightly optimizing __pa/__va calculations. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
committed by
Alexander Gordeev
parent
9af310ef10
commit
d7bebcb4a8
@@ -184,7 +184,11 @@ extern struct vm_layout vm_layout;
|
||||
|
||||
#define __kaslr_offset vm_layout.kaslr_offset
|
||||
#define __kaslr_offset_phys vm_layout.kaslr_offset_phys
|
||||
#ifdef CONFIG_RANDOMIZE_IDENTITY_BASE
|
||||
#define __identity_base vm_layout.identity_base
|
||||
#else
|
||||
#define __identity_base 0UL
|
||||
#endif
|
||||
#define ident_map_size vm_layout.identity_size
|
||||
|
||||
static inline unsigned long kaslr_offset(void)
|
||||
|
||||
Reference in New Issue
Block a user