* How about share all PFN_* ?
@ 2004-06-29 12:39 Coywolf Qi Hunt
2004-06-30 8:22 ` [PATCH] share all PFN_* Coywolf Qi Hunt
0 siblings, 1 reply; 2+ messages in thread
From: Coywolf Qi Hunt @ 2004-06-29 12:39 UTC (permalink / raw)
To: linux-kernel
Hello all,
There's too many macros definitions PFN_UP PFN_DOWN PFN_PHYS PFN_ALIGN
scattered all over.
How about a patch move them all into one header file(kernel.h or init.h)
and share only one copy of them like what min and max. I'd like to make it.
coywolf
--
Coywolf Qi Hunt
Admin of http://GreatCN.org and http://LoveCN.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] share all PFN_*
2004-06-29 12:39 How about share all PFN_* ? Coywolf Qi Hunt
@ 2004-06-30 8:22 ` Coywolf Qi Hunt
0 siblings, 0 replies; 2+ messages in thread
From: Coywolf Qi Hunt @ 2004-06-30 8:22 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
Coywolf Qi Hunt wrote:
> Hello all,
>
> There's too many macros definitions PFN_UP PFN_DOWN PFN_PHYS PFN_ALIGN
> scattered all over.
> How about a patch move them all into one header file(kernel.h or init.h)
> and share only one copy of them like what min and max. I'd like to
> make it.
>
>
> coywolf
>
This patch splits out asm-generic/page.h and includes it at the bottom
of all arch specific page.h's.
This approach is more easy and *safe* than move the macros into kernel.h
or other, and also prepares for future. By nested into page.h, we can make
sure it's no problem to simply remove those definitions without adding new
include statements.
Here is it. http://greatcn.org/~coywolf/patches/2.6/share-PFN.patch
btw, these are all identical replacements, except on arm26(Matt Heler
told me).
Arm26 implementation has done too much on this point.
On arm26: #define PFN_UP(x) (PAGE_ALIGN(x) >> PAGE_SHIFT)
PAGE_ALIGN is no use here since >> followed
--
Coywolf Qi Hunt
Admin of http://GreatCN.org and http://LoveCN.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-30 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29 12:39 How about share all PFN_* ? Coywolf Qi Hunt
2004-06-30 8:22 ` [PATCH] share all PFN_* Coywolf Qi Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox