Messages in this thread | | | Date | Fri, 3 Oct 2008 09:38:35 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH 2/2] x86: mtrr_cleanup try gran_size to less than 1M |
| |
* Yinghai Lu <yinghai@kernel.org> wrote:
> > boundary handling may have problem... > > can you try > > diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c > index ef64128..70beb13 100644 > --- a/arch/x86/kernel/cpu/mtrr/main.c > +++ b/arch/x86/kernel/cpu/mtrr/main.c > @@ -1044,7 +1044,7 @@ second_try: > hole_sizek = range0_sizek - state->range_sizek - second_sizek; > > /* hole size should be less than half of range0 size */ > - if (hole_sizek > (range0_sizek >> 1) && > + if (hole_sizek >= (range0_sizek >> 1) && > range0_sizek >= chunk_sizek) {
applied to tip/x86/mtrr, thanks Yinghai!
Ingo
| |