diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-12-31 15:55:39 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 10:44:16 -0500 |
commit | 7f256020cc599bc0b736c57d702b864dbbefcefb (patch) | |
tree | a6eb6a8f1d809cf98c058ff7272a6eddf51ca57f /kernel/cpu_pm.c | |
parent | 2771374d47220c7ec271281437625e9519505bb2 (diff) | |
download | op-kernel-dev-7f256020cc599bc0b736c57d702b864dbbefcefb.zip op-kernel-dev-7f256020cc599bc0b736c57d702b864dbbefcefb.tar.gz |
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>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'kernel/cpu_pm.c')
0 files changed, 0 insertions, 0 deletions