x86/mm/pat: Update the comments in pat.c and pat_interval.c and refresh the code...
authorIngo Molnar <mingo@kernel.org>
Tue, 10 Dec 2019 09:05:45 +0000 (10:05 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 10 Dec 2019 09:12:55 +0000 (10:12 +0100)
commitaee7f91369a80d2cb9bba198331479cc9bfc0ade
tree3e183e3a1d9fe0eab3b0cf712c1d9f87f9f429e6
parent360db4ace3117ac1d9936d529f59c653e337b0f5
x86/mm/pat: Update the comments in pat.c and pat_interval.c and refresh the code a bit

Tidy up the code:

 - add comments explaining the PAT code, the role of the functions and the logic

 - fix various typos and grammar while at it

 - simplify the file-scope memtype_interval_*() namespace to interval_*()

 - simplify stylistic complications such as unnecessary linebreaks
   or convoluted control flow

 - use the simpler '#ifdef CONFIG_*' pattern instead of '#if defined(CONFIG_*)' pattern

 - remove the non-idiomatic newline between late_initcall() and its function definition

Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/pat.c
arch/x86/mm/pat_interval.c