]> err.no Git - linux-2.6/commit
[PATCH] powerpc: Add a is_kernel_addr() macro
authorMichael Ellerman <michael@ellerman.id.au>
Sun, 4 Dec 2005 07:39:15 +0000 (18:39 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:51:50 +0000 (14:51 +1100)
commit51fae6de24da57bc6cdaa1b253595c3513ecbf2d
tree27df7f07270fb79eae44783331faeb3af3d313ab
parentcd0ca2ce4b2f4a5132e7e230be8a510755c20870
[PATCH] powerpc: Add a is_kernel_addr() macro

There's a bunch of code that compares an address with KERNELBASE to see if
it's a "kernel address", ie. >= KERNELBASE. The proper test is actually to
compare with PAGE_OFFSET, since we're going to change KERNELBASE soon.

So replace all of them with an is_kernel_addr() macro that does that.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/mm/slb.c
arch/powerpc/mm/stab.c
arch/powerpc/mm/tlb_64.c
arch/powerpc/oprofile/op_model_power4.c
arch/powerpc/oprofile/op_model_rs64.c
arch/powerpc/xmon/xmon.c
include/asm-powerpc/page.h