https://github.com/torvalds/linux
Revision 75e6bf9638992dfc0fec9c3ca10444c8e0d6a638 authored by David Woodhouse on 02 July 2009, 10:21:16 UTC, committed by David Woodhouse on 02 July 2009, 10:27:13 UTC
On Wed, 2009-07-01 at 16:59 -0700, Linus Torvalds wrote:
> I also _really_ hate how you do
>
>         (unsigned long)pte >> VTD_PAGE_SHIFT ==
>         (unsigned long)first_pte >> VTD_PAGE_SHIFT

Kill this, in favour of just looking to see if the incremented pte
pointer has 'wrapped' onto the next page. Which means we have to check
it _after_ incrementing it, not before.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 7766a3f
History
Tip revision: 75e6bf9638992dfc0fec9c3ca10444c8e0d6a638 authored by David Woodhouse on 02 July 2009, 10:21:16 UTC
intel-iommu: Introduce first_pte_in_page() to simplify PTE-setting loops
Tip revision: 75e6bf9
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 945 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 147.8 KB
Makefile -rw-r--r-- 53.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top