]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/cpa: Rework static_protections()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Sep 2018 14:29:09 +0000 (16:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Sep 2018 18:39:37 +0000 (20:39 +0200)
commit5c2570ff9899ddaca20a341fa2c5875d76052f5c
tree05743b4811ab86261c0be544066a6026c39819f7
parentf7549f7a426fc010eef73990d902fcc7de476f3d
x86/mm/cpa: Rework static_protections()

static_protections() is pretty unreadable. Split it up into separate checks
for each protection area.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Bin Yang <bin.yang@intel.com>
Cc: Mark Gross <mark.gross@intel.com>
Link: https://lkml.kernel.org/r/20180917143545.913005317@linutronix.de
arch/x86/mm/pageattr.c