lkml.org 
[lkml]   [1998]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: virt_to_bus and >1G of memory (was MAX_DMA_ADDRESS ...)

On Wed, 11 Nov 1998, Jan Kasprzak wrote:

> Can anybody explain this to me? Is (x)-PAGE_OFFSET at any chance
> slower or less efficient than (x)&~PAGE_OFFSET?

no, it's just as fast. (but it's not as robust, so it's a bit more complex
to get a maintainable solution) There is a patch that implements this, but
it's not yet added to the mainstream kernel. (and probably wont be for
2.2) Until it's added, you can use powers of 2, they are OK for most
cases.

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.090 / U:0.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site