summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-04-08 21:30:15 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-08 21:30:15 -0700
commitdf921d4dac2bc2f1fd0d6d461710cefcc7d67769 (patch)
tree66b92202dc0abb01301fe6ec32b09299ce080179 /include/linux
parent3523bd5550d7452589952237cc02730c952abd88 (diff)
[PATCH] misc rmap speedups
Even a BUG_ON() makes a measurable difference. So remove some gratuitous ones which will just trigger a null pointer deref anyway. Also remove some debug code which isn't really being maintained any more. Also replace (effectively): test_bit(N, foo); set_bit(N, foo); with set_bit(N, foo); test_bit(N, foo); In the first case we'll go onto the bus twice: once for the cache miss and once to get exclusive write access. In the second case we only go on the bus once. I think. Certainly this trick chaved 40% off the cost of shrink_list() when I did it there... This patch is worth 1% or so on the bash script testing.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions