From: Jason Wessel Date: Wed, 13 Oct 2010 19:09:43 +0000 (-0500) Subject: kdb, kms: Save and restore the LUT on atomic KMS enter/exit X-Git-Tag: v2.6.37-rc1~92^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99231028ff713820829b798d056c08a584281c25;p=pandora-kernel.git kdb, kms: Save and restore the LUT on atomic KMS enter/exit When changing VTs non-atomically the kernel works in conjunction with the Xserver in user space and receives the LUT information from the Xserver via a system call. When changing modes atomically for kdb, this information must be saved and restored without disturbing user space as if nothing ever happened. There is a short cut used by this patch where gamma_store is used as the save space. If this turns out to be a problem in the future a pre-allocated chunk of memory will be required for each crtc to save and restore the LUT information. Signed-off-by: Jason Wessel CC: Jesse Barnes CC: David Airlie CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed