summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mrst.c
diff options
context:
space:
mode:
authorDaniel Kiper2011-04-15 00:21:53 +0200
committerLinus Torvalds2011-04-15 01:06:54 +0200
commit584208e6b4103d2cfb08a7889c9fa3540826e0d5 (patch)
tree0333330823c7bc82d73ea1506a5f35555bd577ef /drivers/rtc/rtc-mrst.c
parentmemcg: fix mem_cgroup_rotate_reclaimable_page() (diff)
downloadkernel-qcow2-linux-584208e6b4103d2cfb08a7889c9fa3540826e0d5.tar.gz
kernel-qcow2-linux-584208e6b4103d2cfb08a7889c9fa3540826e0d5.tar.xz
kernel-qcow2-linux-584208e6b4103d2cfb08a7889c9fa3540826e0d5.zip
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 <dkiper@net-space.pl> Acked-by: Dave Hansen <dave@linux.vnet.ibm.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Christoph Lameter <cl@linux.com> Acked-by: David Rientjes <rientjes@google.com> Reviewed-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-mrst.c')
0 files changed, 0 insertions, 0 deletions