summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-01-06 01:58:16 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-06 01:58:16 -0800
commiteb25b5b24b977f108c5a08b98d57357af0612cbb (patch)
treec240ac3f3912c2ac7e5d5f4c6e095d408278d314 /net/lapb/lapb_iface.c
parent1e95245b2fa40d898012a70080b60c1b4d6d70ca (diff)
[PATCH] Fix up compiler inefficiencies
Oh, bugger... The recent mmzone.h change triggered some very, very ugly things in next_zone(), is_highmem(), is_normal() and zone_idx() because it changed the size of "struct zone" subtly. Pointer subtraction is no fun when sizeof of object gets weird and poor gcc blows its brains out trying to optimize that... This slowed down an ARM cross-build by a factor of 2.5. Turn the pointer subtraction tests into pointer addition tests instead where possible, making them trivial to deal with (and gets better code, in addition to faster compile). zone_idx() still does a subtraction.
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions