summaryrefslogtreecommitdiffstats
path: root/Documentation/spi/pxa2xx
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2007-02-10 10:43:14 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 19:51:19 +0100
commitbd8029b66069d29fd02c304599411ca9bb7fa38c (patch)
tree2b4088813f060afc40c00ac668c2c3d183e156ad /Documentation/spi/pxa2xx
parent[PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA (diff)
downloadlinux-bd8029b66069d29fd02c304599411ca9bb7fa38c.tar.xz
linux-bd8029b66069d29fd02c304599411ca9bb7fa38c.zip
[PATCH] zoneid: fix up calculations for ZONEID_PGSHIFT
Currently if we have a non-zero ZONES_SHIFT we assume we are able to rely on that as the bottom edge of the ZONEID, if not then we use the NODES_PGOFF as the right end of either NODES _or_ SECTION. This latter is more luck than judgement and would be incorrect if we reordered the SECTION,NODE,ZONE options in the fields space. Really what we want is the lower of the right hand end of the two fields we are using (either NODE,ZONE or SECTION,ZONE). Codify that explicitly. As always allow for there being no bits in either of the fields, such as might be valid in a non-numa machine with only a zone NORMAL. I have checked that the compiler is still able to constant fold all of this away correctly. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/spi/pxa2xx')
0 files changed, 0 insertions, 0 deletions