gpu: nvgpu: Simplify pagepool size query

Make pagepool size query into a function instead of storing the value
during boot time in a structure. This simplifies the structure and
users of pagepool size do not need to worry about whether it has
already been set.

Change-Id: Iba16e840cdf9b6c39449730237aa7d8fdff47848
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/660907
This commit is contained in:
Terje Bergstrom
2014-12-08 14:06:04 +02:00
committed by Dan Willemsen
parent 0abb99eb9c
commit 69bb5e1569
4 changed files with 9 additions and 18 deletions

View File

@@ -143,7 +143,7 @@ struct gpu_ops {
struct zbc_entry *color_val, u32 index);
int (*add_zbc_depth)(struct gk20a *g, struct gr_gk20a *gr,
struct zbc_entry *depth_val, u32 index);
void (*buffer_size_defaults)(struct gk20a *g);
u32 (*pagepool_default_size)(struct gk20a *g);
} gr;
const char *name;
struct {