mm: convert totalram_pages and totalhigh_pages variables to atomic
[sfrench/cifs-2.6.git] / drivers / gpu / drm / i915 / i915_gem.c
index d36a9755ad910f29870e252bb7d6a18a800101d3..a9de07bb72c896e8f3714799fd3a9264010bb79e 100644 (file)
@@ -2559,7 +2559,7 @@ static int i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj)
         * If there's no chance of allocating enough pages for the whole
         * object, bail early.
         */
-       if (page_count > totalram_pages)
+       if (page_count > totalram_pages())
                return -ENOMEM;
 
        st = kmalloc(sizeof(*st), GFP_KERNEL);