Skip to content

Commit 67078ec

Browse files
committed
Merge commit 'v2.6.32.9' into android-2.6.32
2 parents dc13661 + 7f5e918 commit 67078ec

File tree

683 files changed

+7634
-5963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

683 files changed

+7634
-5963
lines changed

Documentation/Changes

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ o oprofile 0.9 # oprofiled --version
4949
o udev 081 # udevinfo -V
5050
o grub 0.93 # grub --version
5151
o mcelog 0.6
52+
o iptables 1.4.1 # iptables -V
53+
5254

5355
Kernel compilation
5456
==================

Documentation/DocBook/Makefile

+15-6
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ PS_METHOD = $(prefer-db2x)
3232

3333
###
3434
# The targets that may be used.
35-
PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs media
35+
PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs xmldoclinks
3636

3737
BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
38-
xmldocs: $(BOOKS)
38+
xmldocs: $(BOOKS) xmldoclinks
3939
sgmldocs: xmldocs
4040

4141
PS := $(patsubst %.xml, %.ps, $(BOOKS))
@@ -45,15 +45,24 @@ PDF := $(patsubst %.xml, %.pdf, $(BOOKS))
4545
pdfdocs: $(PDF)
4646

4747
HTML := $(sort $(patsubst %.xml, %.html, $(BOOKS)))
48-
htmldocs: media $(HTML)
48+
htmldocs: $(HTML)
4949
$(call build_main_index)
50+
$(call build_images)
5051

5152
MAN := $(patsubst %.xml, %.9, $(BOOKS))
5253
mandocs: $(MAN)
5354

54-
media:
55-
mkdir -p $(srctree)/Documentation/DocBook/media/
56-
cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(srctree)/Documentation/DocBook/media/
55+
build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \
56+
cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(objtree)/Documentation/DocBook/media/
57+
58+
xmldoclinks:
59+
ifneq ($(objtree),$(srctree))
60+
for dep in dvb media-entities.tmpl media-indices.tmpl v4l; do \
61+
rm -f $(objtree)/Documentation/DocBook/$$dep \
62+
&& ln -s $(srctree)/Documentation/DocBook/$$dep $(objtree)/Documentation/DocBook/ \
63+
|| exit; \
64+
done
65+
endif
5766

5867
installmandocs: mandocs
5968
mkdir -p /usr/local/man/man9/

Documentation/filesystems/ext4.txt

+9-3
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ journal_dev=devnum When the external journal device's major/minor numbers
153153
identified through its new major/minor numbers encoded
154154
in devnum.
155155

156-
noload Don't load the journal on mounting. Note that
157-
if the filesystem was not unmounted cleanly,
156+
norecovery Don't load the journal on mounting. Note that
157+
noload if the filesystem was not unmounted cleanly,
158158
skipping the journal replay will lead to the
159159
filesystem containing inconsistencies that can
160160
lead to any number of problems.
@@ -196,7 +196,7 @@ nobarrier This also requires an IO stack which can support
196196
also be used to enable or disable barriers, for
197197
consistency with other ext4 mount options.
198198

199-
inode_readahead=n This tuning parameter controls the maximum
199+
inode_readahead_blks=n This tuning parameter controls the maximum
200200
number of inode table blocks that ext4's inode
201201
table readahead algorithm will pre-read into
202202
the buffer cache. The default value is 32 blocks.
@@ -353,6 +353,12 @@ noauto_da_alloc replacing existing files via patterns such as
353353
system crashes before the delayed allocation
354354
blocks are forced to disk.
355355

356+
discard Controls whether ext4 should issue discard/TRIM
357+
nodiscard(*) commands to the underlying block device when
358+
blocks are freed. This is useful for SSD devices
359+
and sparse/thinly-provisioned LUNs, but it is off
360+
by default until sufficient testing has been done.
361+
356362
Data Mode
357363
=========
358364
There are 3 different data modes:

Documentation/kernel-parameters.txt

+2
Original file line numberDiff line numberDiff line change
@@ -2645,6 +2645,8 @@ and is between 256 and 4096 characters. It is defined in the file
26452645
to a common usb-storage quirk flag as follows:
26462646
a = SANE_SENSE (collect more than 18 bytes
26472647
of sense data);
2648+
b = BAD_SENSE (don't collect more than 18
2649+
bytes of sense data);
26482650
c = FIX_CAPACITY (decrease the reported
26492651
device capacity by one sector);
26502652
h = CAPACITY_HEURISTICS (decrease the

Documentation/kvm/api.txt

+36
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,42 @@ struct kvm_irqchip {
593593
} chip;
594594
};
595595

596+
4.27 KVM_GET_CLOCK
597+
598+
Capability: KVM_CAP_ADJUST_CLOCK
599+
Architectures: x86
600+
Type: vm ioctl
601+
Parameters: struct kvm_clock_data (out)
602+
Returns: 0 on success, -1 on error
603+
604+
Gets the current timestamp of kvmclock as seen by the current guest. In
605+
conjunction with KVM_SET_CLOCK, it is used to ensure monotonicity on scenarios
606+
such as migration.
607+
608+
struct kvm_clock_data {
609+
__u64 clock; /* kvmclock current value */
610+
__u32 flags;
611+
__u32 pad[9];
612+
};
613+
614+
4.28 KVM_SET_CLOCK
615+
616+
Capability: KVM_CAP_ADJUST_CLOCK
617+
Architectures: x86
618+
Type: vm ioctl
619+
Parameters: struct kvm_clock_data (in)
620+
Returns: 0 on success, -1 on error
621+
622+
Sets the current timestamp of kvmclock to the valued specific in its parameter.
623+
In conjunction with KVM_GET_CLOCK, it is used to ensure monotonicity on scenarios
624+
such as migration.
625+
626+
struct kvm_clock_data {
627+
__u64 clock; /* kvmclock current value */
628+
__u32 flags;
629+
__u32 pad[9];
630+
};
631+
596632
5. The kvm_run structure
597633

598634
Application code obtains a pointer to the kvm_run structure by

Documentation/video4linux/CARDLIST.saa7134

+1
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@
172172
171 -> Beholder BeholdTV X7 [5ace:7595]
173173
172 -> RoverMedia TV Link Pro FM [19d1:0138]
174174
173 -> Zolid Hybrid TV Tuner PCI [1131:2004]
175+
174 -> Asus Europa Hybrid OEM [1043:4847]

Documentation/video4linux/gspca.txt

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ov519 041e:405f Creative Live! VISTA VF0330
3737
ov519 041e:4060 Creative Live! VISTA VF0350
3838
ov519 041e:4061 Creative Live! VISTA VF0400
3939
ov519 041e:4064 Creative Live! VISTA VF0420
40+
ov519 041e:4067 Creative Live! Cam Video IM (VF0350)
4041
ov519 041e:4068 Creative Live! VISTA VF0470
4142
spca561 0458:7004 Genius VideoCAM Express V2
4243
sunplus 0458:7006 Genius Dsc 1.3 Smart

MAINTAINERS

+3-1
Original file line numberDiff line numberDiff line change
@@ -5594,9 +5594,11 @@ S: Maintained
55945594
F: drivers/net/wireless/rndis_wlan.c
55955595

55965596
USB XHCI DRIVER
5597-
M: Sarah Sharp <[email protected]>
5597+
M: Sarah Sharp <sarah.a.sharp@linux.intel.com>
55985598
55995599
S: Supported
5600+
F: drivers/usb/host/xhci*
5601+
F: drivers/usb/host/pci-quirks*
56005602

56015603
USB ZC0301 DRIVER
56025604
M: Luca Risolia <[email protected]>

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 2
22
PATCHLEVEL = 6
33
SUBLEVEL = 32
4-
EXTRAVERSION =
4+
EXTRAVERSION = .9
55
NAME = Man-Eating Seals of Antiquity
66

77
# *DOCUMENTATION*

arch/alpha/kernel/osf_sys.c

+6-13
Original file line numberDiff line numberDiff line change
@@ -178,25 +178,18 @@ SYSCALL_DEFINE6(osf_mmap, unsigned long, addr, unsigned long, len,
178178
unsigned long, prot, unsigned long, flags, unsigned long, fd,
179179
unsigned long, off)
180180
{
181-
struct file *file = NULL;
182-
unsigned long ret = -EBADF;
181+
unsigned long ret = -EINVAL;
183182

184183
#if 0
185184
if (flags & (_MAP_HASSEMAPHORE | _MAP_INHERIT | _MAP_UNALIGNED))
186185
printk("%s: unimplemented OSF mmap flags %04lx\n",
187186
current->comm, flags);
188187
#endif
189-
if (!(flags & MAP_ANONYMOUS)) {
190-
file = fget(fd);
191-
if (!file)
192-
goto out;
193-
}
194-
flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
195-
down_write(&current->mm->mmap_sem);
196-
ret = do_mmap(file, addr, len, prot, flags, off);
197-
up_write(&current->mm->mmap_sem);
198-
if (file)
199-
fput(file);
188+
if ((off + PAGE_ALIGN(len)) < off)
189+
goto out;
190+
if (off & ~PAGE_MASK)
191+
goto out;
192+
ret = sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);
200193
out:
201194
return ret;
202195
}

arch/arm/include/asm/mman.h

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
#include <asm-generic/mman.h>
2+
3+
#define arch_mmap_check(addr, len, flags) \
4+
(((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)

arch/arm/kernel/calls.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
/* 160 */ CALL(sys_sched_get_priority_min)
173173
CALL(sys_sched_rr_get_interval)
174174
CALL(sys_nanosleep)
175-
CALL(sys_arm_mremap)
175+
CALL(sys_mremap)
176176
CALL(sys_setresuid16)
177177
/* 165 */ CALL(sys_getresuid16)
178178
CALL(sys_ni_syscall) /* vm86 */

arch/arm/kernel/entry-common.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ sys_mmap2:
416416
tst r5, #PGOFF_MASK
417417
moveq r5, r5, lsr #PAGE_SHIFT - 12
418418
streq r5, [sp, #4]
419-
beq do_mmap2
419+
beq sys_mmap_pgoff
420420
mov r0, #-EINVAL
421421
mov pc, lr
422422
#else
423423
str r5, [sp, #4]
424-
b do_mmap2
424+
b sys_mmap_pgoff
425425
#endif
426426
ENDPROC(sys_mmap2)
427427

arch/arm/kernel/sys_arm.c

+1-54
Original file line numberDiff line numberDiff line change
@@ -28,41 +28,6 @@
2828
#include <linux/ipc.h>
2929
#include <linux/uaccess.h>
3030

31-
extern unsigned long do_mremap(unsigned long addr, unsigned long old_len,
32-
unsigned long new_len, unsigned long flags,
33-
unsigned long new_addr);
34-
35-
/* common code for old and new mmaps */
36-
inline long do_mmap2(
37-
unsigned long addr, unsigned long len,
38-
unsigned long prot, unsigned long flags,
39-
unsigned long fd, unsigned long pgoff)
40-
{
41-
int error = -EINVAL;
42-
struct file * file = NULL;
43-
44-
flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
45-
46-
if (flags & MAP_FIXED && addr < FIRST_USER_ADDRESS)
47-
goto out;
48-
49-
error = -EBADF;
50-
if (!(flags & MAP_ANONYMOUS)) {
51-
file = fget(fd);
52-
if (!file)
53-
goto out;
54-
}
55-
56-
down_write(&current->mm->mmap_sem);
57-
error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
58-
up_write(&current->mm->mmap_sem);
59-
60-
if (file)
61-
fput(file);
62-
out:
63-
return error;
64-
}
65-
6631
struct mmap_arg_struct {
6732
unsigned long addr;
6833
unsigned long len;
@@ -84,29 +49,11 @@ asmlinkage int old_mmap(struct mmap_arg_struct __user *arg)
8449
if (a.offset & ~PAGE_MASK)
8550
goto out;
8651

87-
error = do_mmap2(a.addr, a.len, a.prot, a.flags, a.fd, a.offset >> PAGE_SHIFT);
52+
error = sys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset >> PAGE_SHIFT);
8853
out:
8954
return error;
9055
}
9156

92-
asmlinkage unsigned long
93-
sys_arm_mremap(unsigned long addr, unsigned long old_len,
94-
unsigned long new_len, unsigned long flags,
95-
unsigned long new_addr)
96-
{
97-
unsigned long ret = -EINVAL;
98-
99-
if (flags & MREMAP_FIXED && new_addr < FIRST_USER_ADDRESS)
100-
goto out;
101-
102-
down_write(&current->mm->mmap_sem);
103-
ret = do_mremap(addr, old_len, new_len, flags, new_addr);
104-
up_write(&current->mm->mmap_sem);
105-
106-
out:
107-
return ret;
108-
}
109-
11057
/*
11158
* Perform the select(nd, in, out, ex, tv) and mmap() system
11259
* calls.

arch/arm/mach-davinci/dm646x.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,14 @@ static struct davinci_id dm646x_ids[] = {
789789
.part_no = 0xb770,
790790
.manufacturer = 0x017,
791791
.cpu_id = DAVINCI_CPU_ID_DM6467,
792-
.name = "dm6467",
792+
.name = "dm6467_rev1.x",
793+
},
794+
{
795+
.variant = 0x1,
796+
.part_no = 0xb770,
797+
.manufacturer = 0x017,
798+
.cpu_id = DAVINCI_CPU_ID_DM6467,
799+
.name = "dm6467_rev3.x",
793800
},
794801
};
795802

arch/arm/mach-pxa/em-x270.c

+5-6
Original file line numberDiff line numberDiff line change
@@ -497,16 +497,15 @@ static int em_x270_usb_hub_init(void)
497497
goto err_free_vbus_gpio;
498498

499499
/* USB Hub power-on and reset */
500-
gpio_direction_output(usb_hub_reset, 0);
500+
gpio_direction_output(usb_hub_reset, 1);
501+
gpio_direction_output(GPIO9_USB_VBUS_EN, 0);
501502
regulator_enable(em_x270_usb_ldo);
502-
gpio_set_value(usb_hub_reset, 1);
503503
gpio_set_value(usb_hub_reset, 0);
504+
gpio_set_value(usb_hub_reset, 1);
504505
regulator_disable(em_x270_usb_ldo);
505506
regulator_enable(em_x270_usb_ldo);
506-
gpio_set_value(usb_hub_reset, 1);
507-
508-
/* enable VBUS */
509-
gpio_direction_output(GPIO9_USB_VBUS_EN, 1);
507+
gpio_set_value(usb_hub_reset, 0);
508+
gpio_set_value(GPIO9_USB_VBUS_EN, 1);
510509

511510
return 0;
512511

arch/arm/mm/mmap.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
5454
* We enforce the MAP_FIXED case.
5555
*/
5656
if (flags & MAP_FIXED) {
57-
if (aliasing && flags & MAP_SHARED && addr & (SHMLBA - 1))
57+
if (aliasing && flags & MAP_SHARED &&
58+
(addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))
5859
return -EINVAL;
5960
return addr;
6061
}

arch/avr32/include/asm/syscalls.h

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *,
2929
struct pt_regs *);
3030
asmlinkage int sys_rt_sigreturn(struct pt_regs *);
3131

32-
/* kernel/sys_avr32.c */
33-
asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
34-
unsigned long, unsigned long, off_t);
35-
3632
/* mm/cache.c */
3733
asmlinkage int sys_cacheflush(int, void __user *, size_t);
3834

0 commit comments

Comments
 (0)