From: Arjan van de Ven Date: Wed, 30 Jan 2008 12:34:06 +0000 (+0100) Subject: x86: a new API for drivers/etc to control cache and other page attributes X-Git-Tag: v2.6.25-rc1~1143^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75cbade8ea3127a84e3da7c2c15808e54f0df7e8;p=pandora-kernel.git x86: a new API for drivers/etc to control cache and other page attributes Right now, if drivers or other code want to change, say, a cache attribute of a page, the only API they have is change_page_attr(). c-p-a is a really bad API for this, because it forces the caller to know *ALL* the attributes he wants for the page, not just the 1 thing he wants to change. So code that wants to set a page uncachable, needs to be aware of the NX status as well etc etc etc. This patch introduces a set of new APIs for this, set_pages_ and set_memory_, that offer a logical change to the user, and leave all attributes not implied by the requested logical change alone. Signed-off-by: Arjan van de Ven Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed