aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDaniel Kiper <[email protected]>2011-04-14 15:21:53 -0700
committerLinus Torvalds <[email protected]>2011-04-14 16:06:54 -0700
commit584208e6b4103d2cfb08a7889c9fa3540826e0d5 (patch)
tree0333330823c7bc82d73ea1506a5f35555bd577ef /lib/memory-notifier-error-inject.c
parent67954fe95705a8ff80335964bd7e621d13fbc499 (diff)
mm: optimize pfn calculation in online_page()
If CONFIG_FLATMEM is enabled pfn is calculated in online_page() more than once. It is possible to optimize that and use value established at beginning of that function. Signed-off-by: Daniel Kiper <[email protected]> Acked-by: Dave Hansen <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Wu Fengguang <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Christoph Lameter <[email protected]> Acked-by: David Rientjes <[email protected]> Reviewed-by: Jesper Juhl <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions