CHROMIUM: MALI: fix sysfs memory file
authorMandeep Singh Baines <msb@chromium.org>
Tue, 13 Nov 2012 00:55:32 +0000 (16:55 -0800)
committerGerrit <chrome-bot@google.com>
Sat, 15 Dec 2012 03:01:40 +0000 (19:01 -0800)
commit4c55ac9f8f454392cca6f190d027a0218731e93e
tree5a99a5b8295c33300e9361a66ad1591bc4ff9eea
parentea4fbdebebfd044de104786a90da1e472082f90c
CHROMIUM: MALI: fix sysfs memory file

The sysfs file which reports memory was broken by the recent
update go wk45.

BUG=chromium-os:36060,chrome-os-partner:16814
TEST=Verified that the sysfs file now reports the correct data

localhost ~ # cat /sys/devices/platform/mali.0/memory
57143296 bytes
localhost ~ # stop ui
ui stop/waiting
localhost ~ # cat /sys/devices/platform/mali.0/memory
28672 bytes
localhost ~ # start ui
ui start/running, process 4791
localhost ~ # cat /sys/devices/platform/mali.0/memory
51875840 bytes
localhost ~ # stop ui
ui stop/waiting
localhost ~ # cat /sys/devices/platform/mali.0/memory
28672 bytes

Change-Id: I6df9bf70028ac0bc18fe993242c65dc87c430fd2
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39730
Reviewed-by: Anush Elangovan <anush@google.com>
drivers/gpu/arm/t6xx/kbase/src/common/mali_kbase_mem.c
drivers/gpu/arm/t6xx/kbase/src/common/mali_kbase_mem.h
drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c