[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080215073026.GA25583@elte.hu>
Date: Fri, 15 Feb 2008 08:30:26 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: "Huang, Ying" <ying.huang@...el.com>,
Andi Kleen <andi@...stfloor.org>, tglx@...utronix.de,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix left over EFI cache mapping problems
* Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> So *if* we care (I doubt we do, since EFI_PAGE_SHIFT at least right
> now matches PAGE_SHIFT on x86), you'd probably want to do something
> like
>
> static inline unsigned long efi_pages_to_native_pages(unsigned long efi_pages)
> {
> #if EFI_PAGE_SHIFT > PAGE_SHIFT
> return efi_pages << (EFI_PAGE_SHIFT - PAGE_SHIFT);
> #else
> return efi_pages >> (PAGE_SHIFT - EFI_PAGE_SHIFT);
> #endif
> }
yeah, this is even cleaner - i guess EFI_PAGE_SHIFT will be around in
the future too because it's also used on ia64.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists