x86: cpa cleanup the 64-bit alias math
commit0879750f5d75dee0546316b7b0e83fb6cd258ad7
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:34:09 +0000 (30 13:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:09 +0000 (30 13:34 +0100)
tree76190c94a6e3abc12964fd6a4835e0a1f5019fe5
parent86f03989d99cfa2e1216cdd7aa996852236909cf
x86: cpa cleanup the 64-bit alias math

Cleanup the address calculations, which are necessary to identify the
high/low alias mappings of the kernel on 64 bit machines. Instead of
calling __pa/__va back and forth, calculate the physical address once
and base the other calculations on it. Add understandable constants so
we can use the already available within() helper. Also add comments,
which help mere mortals to understand what this code does.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c