android_kernel_xiaomi_sm8350/drivers
Jan Beulich 4481374ce8 mm: replace various uses of num_physpages by totalram_pages
Sizing of memory allocations shouldn't depend on the number of physical
pages found in a system, as that generally includes (perhaps a huge amount
of) non-RAM pages.  The amount of what actually is usable as storage
should instead be used as a basis here.

Some of the calculations (i.e.  those not intending to use high memory)
should likely even use (totalram_pages - totalhigh_pages).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Dave Airlie <airlied@linux.ie>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-22 07:17:38 -07:00
..
accessibility
acpi x86: Trivial whitespace cleanups 2009-09-20 20:18:57 +02:00
amba
ata libata: Add pata_atp867x driver for Artop/Acard ATP867X controllers 2009-09-17 16:47:06 -04:00
atm
auxdisplay
base mm: oom analysis: add shmem vmstat 2009-09-22 07:17:27 -07:00
block const: make block_device_operations const 2009-09-22 07:17:25 -07:00
bluetooth
cdrom const: make block_device_operations const 2009-09-22 07:17:25 -07:00
char mm: replace various uses of num_physpages by totalram_pages 2009-09-22 07:17:38 -07:00
clocksource
connector
cpufreq Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq 2009-09-18 09:16:57 -07:00
cpuidle tracing, x86, cpuidle: Move the end point of a C state in the power tracer 2009-09-19 18:57:52 +02:00
crypto
dca
dio
dma
edac amd64_edac: check NB MCE bank enable on the current node properly 2009-09-16 13:05:46 +02:00
eisa
firewire
firmware
gpio gpio: Add WM831X GPIO driver 2009-09-17 09:47:01 +02:00
gpu Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 2009-09-21 08:10:09 -07:00
hid Driver-Core: extend devnode callbacks to provide permissions 2009-09-19 12:50:38 -07:00
hwmon Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 2009-09-18 09:22:36 -07:00
i2c [PATCH] i2c-imx: make bus available early 2009-09-19 23:36:56 +01:00
ide const: make block_device_operations const 2009-09-22 07:17:25 -07:00
idle
ieee1394
ieee802154
infiniband
input Driver-Core: extend devnode callbacks to provide permissions 2009-09-19 12:50:38 -07:00
isdn const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
leds
lguest
macintosh
mca
md md: avoid use of broken kzalloc mempool 2009-09-22 07:17:35 -07:00
media drivers/media/dvb/pt1/pt1.c needs vmalloc.h 2009-09-22 07:17:23 -07:00
memstick const: make block_device_operations const 2009-09-22 07:17:25 -07:00
message const: make block_device_operations const 2009-09-22 07:17:25 -07:00
mfd drivers/mfd/ab3100-core.c: fix powerpc build error 2009-09-22 07:17:24 -07:00
misc const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
mmc const: make block_device_operations const 2009-09-22 07:17:25 -07:00
mtd const: make block_device_operations const 2009-09-22 07:17:25 -07:00
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6 2009-09-20 15:55:39 -07:00
nubus
of
oprofile const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
parisc mm: replace various uses of num_physpages by totalram_pages 2009-09-22 07:17:38 -07:00
parport
pci Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2009-09-16 07:49:54 -07:00
pcmcia Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pcmcia-2.6 2009-09-16 08:11:23 -07:00
platform
pnp
power
pps
ps3
rapidio
regulator regulator: Voltage count for AB3100 2009-09-17 15:48:24 +02:00
rtc Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 2009-09-18 09:43:09 -07:00
s390 const: make block_device_operations const 2009-09-22 07:17:25 -07:00
sbus const: make block_device_operations const 2009-09-22 07:17:25 -07:00
scsi const: make block_device_operations const 2009-09-22 07:17:25 -07:00
serial uartlite: support shared interrupt lines 2009-09-19 13:13:38 -07:00
sh
sn
spi
ssb ssb/sdio: fix printk format warnings 2009-09-16 16:21:00 -04:00
staging Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2009-09-21 09:03:10 -07:00
tc
telephony
thermal
uio Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 2009-09-18 09:43:09 -07:00
usb const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
uwb Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/dvrabel/uwb 2009-09-17 09:44:09 -07:00
video includecheck fix: drivers/video, vgacon.c 2009-09-20 16:01:58 +05:30
virtio
vlynq
w1
watchdog [WATCHDOG] sizeof cleanup 2009-09-18 08:39:37 +00:00
xen mm: replace various uses of num_physpages by totalram_pages 2009-09-22 07:17:38 -07:00
zorro
Kconfig
Makefile