Messages in this thread Patch in this message | | | Date | Thu, 17 Jan 2008 21:44:49 +0100 | From | Ingo Molnar <> | Subject | Re: [patch 0/4] x86: PAT followup - Incremental changes and bug fixes |
| |
* Ingo Molnar <mingo@elte.hu> wrote:
> I.e. something like below?
or the one below. (it even builds)
Ingo
--- arch/x86/mm/pat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Index: linux-x86.q/arch/x86/mm/pat.c =================================================================== --- linux-x86.q.orig/arch/x86/mm/pat.c +++ linux-x86.q/arch/x86/mm/pat.c @@ -174,7 +174,12 @@ int reserve_mattr(u64 start, u64 end, un current->comm, current->pid, start, end, cattr_name(attr), cattr_name(ml->attr)); - err = -EBUSY; + /* + * Force the already existing attribute: + */ + ma->attr = ml->attr; + if (*fattr) + *fattr = ml->attr; break; } } else if (ml->start >= end) {
| |