From: Francisco Jerez Date: Sun, 4 Jul 2010 02:03:07 +0000 (+0200) Subject: drm/ttm: Allocate the page pool manager in the heap. X-Git-Tag: v2.6.35-rc5~15^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5870a4d97da136908ca477e3a21bc9f4c2705161;p=pandora-kernel.git drm/ttm: Allocate the page pool manager in the heap. Repeated ttm_page_alloc_init/fini fails noisily because the pool manager kobj isn't zeroed out between uses (we could do just that but statically allocated kobjects are generally considered a bad thing). Move it to kzalloc'ed memory. Note that this patch drops the refcounting behavior of the pool allocator init/fini functions: it would have led to a race condition in its current form, and anyway it was never exploited. This fixes a regression with reloading kms modules at runtime, since page allocator was introduced. Signed-off-by: Francisco Jerez Signed-off-by: Dave Airlie --- Reading git-diff-tree failed