summaryrefslogtreecommitdiff
path: root/drivers/misc/cxl/api.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-02-26 11:26:26 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 21:54:09 +1000
commit171cb719dacd0f102b39bd5ab5eea0ce11813853 (patch)
treea0ad3e76e4e750485157b75a458502995e48da1d /drivers/misc/cxl/api.c
parentdd0b52c47a2d71b7960c9a5ce7d51f17ed03d9f5 (diff)
downloadlinux-171cb719dacd0f102b39bd5ab5eea0ce11813853.tar.gz
linux-171cb719dacd0f102b39bd5ab5eea0ce11813853.tar.xz
powerpc/mm: Improve readability of update_mmu_cache()
The function is used to update the MMU with software PTE. It can be called by data access exception handler (0x300) or instruction access exception handler (0x400). If the function is called by 0x400 handler, the local variable @access is set to _PAGE_EXEC to indicate the software PTE should have that flag set. When the function is called by 0x300 handler, @access is set to zero. This improves the readability of the function by replacing if statements with switch. No logical changes introduced. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/api.c')
0 files changed, 0 insertions, 0 deletions