* [PATCH] x86/pat: no need to check overlaps with more than one entry in chk_conflict
@ 2009-11-18 2:47 Xiaotian Feng
2009-11-18 17:30 ` Pallipadi, Venkatesh
0 siblings, 1 reply; 2+ messages in thread
From: Xiaotian Feng @ 2009-11-18 2:47 UTC (permalink / raw)
To: x86
Cc: linux-kernel, Xiaotian Feng, Ingo Molnar, Suresh Siddha,
Venkatesh Pallipadi
memtype list is built via reserve_memtype, for the overlapped areas, they're
all the same type, otherwise reserve_memtype will fail to insert it into the
list. So there's no need to check overlaps with more than one entry in the
chk_conflict code.
Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
---
arch/x86/mm/pat.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index 81fb753..8178763 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -247,13 +247,6 @@ chk_conflict(struct memtype *new, struct memtype *entry, unsigned long *type)
goto conflict;
}
- /* check overlaps with more than one entry in the list */
- list_for_each_entry_continue(entry, &memtype_list, nd) {
- if (new->end <= entry->start)
- break;
- else if (new->type != entry->type)
- goto conflict;
- }
return 0;
conflict:
--
1.6.2.5
^ permalink raw reply [flat|nested] 2+ messages in thread* RE: [PATCH] x86/pat: no need to check overlaps with more than one entry in chk_conflict
2009-11-18 2:47 [PATCH] x86/pat: no need to check overlaps with more than one entry in chk_conflict Xiaotian Feng
@ 2009-11-18 17:30 ` Pallipadi, Venkatesh
0 siblings, 0 replies; 2+ messages in thread
From: Pallipadi, Venkatesh @ 2009-11-18 17:30 UTC (permalink / raw)
To: Xiaotian Feng, x86; +Cc: linux-kernel, Ingo Molnar, Siddha, Suresh B
>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org
>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Xiaotian Feng
>Sent: Tuesday, November 17, 2009 6:48 PM
>To: x86@kernel.org
>Cc: linux-kernel@vger.kernel.org; Xiaotian Feng; Ingo Molnar;
>Siddha, Suresh B; Pallipadi, Venkatesh
>Subject: [PATCH] x86/pat: no need to check overlaps with more
>than one entry in chk_conflict
>
>memtype list is built via reserve_memtype, for the overlapped
>areas, they're
>all the same type, otherwise reserve_memtype will fail to
>insert it into the
>list. So there's no need to check overlaps with more than one
>entry in the
>chk_conflict code.
NAK.
The reason we have to check for more than one entry is for the cases
like this.
New entry: s-------------------e
Existing entries: s----e s-----e s----e
(s=start, e=end)
Thanks,
Venki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-18 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-18 2:47 [PATCH] x86/pat: no need to check overlaps with more than one entry in chk_conflict Xiaotian Feng
2009-11-18 17:30 ` Pallipadi, Venkatesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®