]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
misc: sram: report correct SRAM pool size
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 1 Jun 2015 12:29:57 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:03:56 +0000 (17:03 -0700)
commit4914f1c7179f056b69b0e2bddc3f5daadb70609d
tree1daf370879d26a844dfc0242ab19542e2bc6ed3f
parentd687b1fa672874bf2c745fc936bec2e1ed75a331
misc: sram: report correct SRAM pool size

Since some space in SRAM may be reserved, report the left free space
in the allocated memory pool instead of total physical size of the
SRAM device.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sram.c