]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/grants: Remove gnttab_max_grant_frames dependency on gnttab_init.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 31 Dec 2013 20:55:39 +0000 (15:55 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 3 Jan 2014 19:57:23 +0000 (14:57 -0500)
commit20037b60e9f1a40b24c608fcedcb7b29e575bd92
tree01c0e82ba790f3b6d9738699900ef2a18b917dd8
parent4feee14b651d89a9f1a3bcdd916e581390f53f08
xen/grants: Remove gnttab_max_grant_frames dependency on gnttab_init.

The function gnttab_max_grant_frames() returns the maximum amount
of frames (pages) of grants we can have. Unfortunatly it was
dependent on gnttab_init() having been run before to initialize
the boot max value (boot_max_nr_grant_frames).

This meant that users of gnttab_max_grant_frames would always
get a zero value if they called before gnttab_init() - such as
'platform_pci_init' (drivers/xen/platform-pci.c).

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/grant-table.c