]> git.baikalelectronics.ru Git - kernel.git/commit
x86: cpa cleanup the 64-bit alias math
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:34:09 +0000 (13:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:09 +0000 (13:34 +0100)
commit5fb53e1a80e64745f38af0d3d6cfbdf41eb2dfe5
tree76190c94a6e3abc12964fd6a4835e0a1f5019fe5
parent16e0d6d60c25d0b506265c9778c0b38caad47b34
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