Harvey Harrison
ddc81ed2c5
remove sparse warning for mmzone.h
...
include/linux/mmzone.h:640:22: warning: potentially expensive pointer subtraction
Calculate the offset into the node_zones array rather than the index
using casts to (char *) and comparing against the index * sizeof(struct zone).
On X86_32 this saves a sar, but code size increases by one byte per
is_highmem() use due to 32-bit cmps rather than 16 bit cmps.
Before:
207: 2b 80 8c 07 00 00 sub 0x78c(%eax),%eax
20d: c1 f8 0b sar $0xb,%eax
210: 83 f8 02 cmp $0x2,%eax
213: 74 16 je 22b <kmap_atomic_prot+0x144>
215: 83 f8 03 cmp $0x3,%eax
218: 0f 85 8f 00 00 00 jne 2ad <kmap_atomic_prot+0x1c6>
21e: 83 3d 00 00 00 00 02 cmpl $0x2,0x0
225: 0f 85 82 00 00 00 jne 2ad <kmap_atomic_prot+0x1c6>
22b: 64 a1 00 00 00 00 mov %fs:0x0,%eax
After:
207: 2b 80 8c 07 00 00 sub 0x78c(%eax),%eax
20d: 3d 00 10 00 00 cmp $0x1000,%eax
212: 74 18 je 22c <kmap_atomic_prot+0x145>
214: 3d 00 18 00 00 cmp $0x1800,%eax
219: 0f 85 8f 00 00 00 jne 2ae <kmap_atomic_prot+0x1c7>
21f: 83 3d 00 00 00 00 02 cmpl $0x2,0x0
226: 0f 85 82 00 00 00 jne 2ae <kmap_atomic_prot+0x1c7>
22c: 64 a1 00 00 00 00 mov %fs:0x0,%eax
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:17 -07:00
..
2008-02-14 00:09:55 -05:00
2008-04-26 19:21:16 +02:00
2008-04-27 15:38:32 +02:00
2008-04-19 20:40:10 -04:00
2008-04-25 08:29:11 +08:00
2008-04-27 15:38:32 +02:00
2008-04-21 16:03:13 -07:00
2008-04-26 19:21:16 +02:00
2008-04-17 10:42:34 -04:00
2008-04-27 12:04:13 +03:00
2008-04-18 08:39:24 -07:00
2008-04-17 10:42:34 -04:00
2008-04-17 10:42:34 -04:00
2008-04-26 13:46:11 -07:00
2008-04-17 10:42:34 -04:00
2008-04-26 19:21:16 +02:00
2008-04-27 18:21:39 +03:00
2008-04-24 20:57:34 +10:00
2008-04-27 12:01:00 +03:00
2008-04-26 19:21:16 +02:00
2008-04-23 23:32:16 -07:00
2008-04-26 19:21:16 +02:00
2008-04-17 10:42:34 -04:00
2008-04-17 10:42:34 -04:00
2008-04-27 10:13:52 -07:00
2008-04-17 10:42:34 -04:00
2008-04-21 10:19:34 +08:00
2008-04-21 22:43:55 +00:00
2008-04-28 08:58:17 -07:00
2008-04-24 14:09:46 -03:00
2008-04-17 11:31:58 +03:00
2008-04-23 16:13:36 -04:00
2008-04-19 19:10:30 -07:00
2008-04-22 15:16:31 -05:00
2008-04-24 12:38:22 +02:00
2008-04-24 23:57:33 +02:00