aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-01sched, trace: Fix sched_switch() prev_state argumentPeter Zijlstra1-1/+18
For CONFIG_PREEMPT=y kernels the sched_switch(.prev_state) argument isn't useful because we can get preempted with current->state != TASK_RUNNING without actually getting removed from the runqueue. Cure this by treating all preempted tasks as runnable from the tracer's point of view. Signed-off-by: Peter Zijlstra <[email protected]> Cautiously-acked-by: Steven Rostedt <[email protected]> LKML-Reference: <1275322715.27810.23323.camel@twins> Signed-off-by: Ingo Molnar <[email protected]>
2010-06-01sched: Fix wake_affine() vs RT tasksPeter Zijlstra2-24/+22
Mike reports that since e9e9250b (sched: Scale down cpu_power due to RT tasks), wake_affine() goes funny on RT tasks due to them still having a !0 weight and wake_affine() still subtracts that from the rq weight. Since nobody should be using se->weight for RT tasks, set the value to zero. Also, since we now use ->cpu_power to normalize rq weights to account for RT cpu usage, add that factor into the imbalance computation. Reported-by: Mike Galbraith <[email protected]> Tested-by: Mike Galbraith <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <1275316109.27810.22969.camel@twins> Signed-off-by: Ingo Molnar <[email protected]>
2010-06-01drivers/isdn/hardware/mISDN: Use GFP_ATOMIC when a lock is heldJulia Lawall1-2/+2
The function inittiger is only called from nj_init_card, where a lock is held. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @gfp exists@ identifier fn; position p; @@ fn(...) { ... when != spin_unlock_irqrestore when any GFP_KERNEL@p ... when any } @locked@ identifier gfp.fn; @@ spin_lock_irqsave(...) ... when != spin_unlock_irqrestore fn(...) @depends on locked@ position gfp.p; @@ - GFP_KERNEL@p + GFP_ATOMIC // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01ksz884x: Add missing validate_addr hookDenis Kirjanov1-0/+1
Add missing validate_addr hook Signed-off-by: Denis Kirjanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01ksz884x: convert to netdev_tx_tDenis Kirjanov1-1/+1
Convert TX hook to netdev_tx_t type Signed-off-by: Denis Kirjanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01virtio-net: pass gfp to add_bufMichael S. Tsirkin1-4/+4
virtio-net bounces buffer allocations off to a thread if it can't allocate buffers from the atomic pool. However, if posting buffers still requires atomic buffers, this is unlikely to succeed. Fix by passing in the proper gfp_t parameter. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01be2net: convert hdr.timeout in be_cmd_loopback_test() to le32Sathya Perla1-1/+1
The current code fails on ppc as hdr.timeout is not being converted to le32. Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01can: mpc5xxx_can.c: Fix build failureAnatolij Gustschin1-5/+5
Fixes build error caused by the OF device_node pointer being moved into struct device. Signed-off-by: Anatolij Gustschin <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Cc: Grant Likely <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-05-31net/ipv4/tcp_input.c: fix compilation breakage when FASTRETRANS_DEBUG > 1Joe Perches1-2/+2
Commit: c720c7e8383aff1cb219bddf474ed89d850336e3 missed these. Signed-off-by: Joe Perches <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-05-31Merge branch 'master' of ↵David S. Miller4-17/+6
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
2010-05-31net: sock_queue_err_skb() dont mess with sk_forward_allocEric Dumazet4-24/+33
Correct sk_forward_alloc handling for error_queue would need to use a backlog of frames that softirq handler could not deliver because socket is owned by user thread. Or extend backlog processing to be able to process normal and error packets. Another possibility is to not use mem charge for error queue, this is what I implemented in this patch. Note: this reverts commit 29030374 (net: fix sk_forward_alloc corruptions), since we dont need to lock socket anymore. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-06-01ALSA: hda: Use LPIB for ASUS M2VDaniel T Chen1-0/+1
BugLink: https://launchpad.net/bugs/587546 Symptom: On the reporter's ASUS M2V, using PulseAudio in Ubuntu 10.04 LTS results in the PA daemon crashing shortly after attempting playback of an audio file. Test case: Using Ubuntu 10.04 LTS (Linux 2.6.32.12), Linux 2.6.33, or Linux 2.6.34, attempt playback of an audio file while PulseAudio is active. Resolution: add SSID for this machine to the position_fix quirk table, explicitly specifying the LPIB method. Reported-and-Tested-By: D Tangman Cc: <[email protected]> Signed-off-by: Daniel T Chen <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2010-06-01usb/gadget: Replace the old USB audio FU definitions in f_audio.cTakashi Iwai1-2/+2
The USB audio FU definitions were renewed by the commit 65f25da44b51f55e3a74301c25f29263be2bf1ba ALSA: usb-audio: unify constants from specification Signed-off-by: Takashi Iwai <[email protected]>
2010-06-01V4L/DVB: ivtv: Timing tweaks and code re-order to try and improve stabilityIan Armstrong2-4/+14
Added small delay on device open & close to allow hardware to settle. Move yuv register restore to before the decoder firmware call to stop playback. Signed-off-by: Ian Armstrong <[email protected]> Signed-off-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: ivtv: Avoid accidental video standard changeIan Armstrong1-2/+14
For yuv video output, pass fake values to avoid firmware trying to change video standard. Signed-off-by: Ian Armstrong <[email protected]> Signed-off-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: ivtvfb : Module load / unload fixesIan Armstrong1-3/+11
Check firmware state when loading module & if firmware is not responding exit with an error. When module is unloaded, only disable the framebuffer & not all decoder output. Signed-off-by: Ian Armstrong <[email protected]> Signed-off-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: cx2341x: Report correct temporal setting for log-statusIan Armstrong1-5/+1
[Andy Walls comment:] This patch from Ian removes the cx2341x module lying about the setting of the temporal filter for the log status ioctl(). Signed-off-by: Ian Armstrong <[email protected]> Signed-off-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email addressAndy Walls44-46/+46
A trivial change to update my email address from my dead [email protected] address to my current [email protected] address. Signed-off-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: drivers/media: Eliminate a NULL pointer dereferenceJulia Lawall3-4/+3
In each case, the print involves dereferencing a value that is NULL or is near NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ expression E,E1; identifier f; statement S1,S2,S3; @@ if ((E == NULL && ...) || ...) { ... when != if (...) S1 else S2 when != E = E1 * E->f ... when any return ...; } else S3 // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: dvb-core: Fix ULE decapsulation bugAng Way Chuang1-1/+11
Fix ULE decapsulation bug when less than 4 bytes of ULE SNDU is packed into the remaining bytes of a MPEG2-TS frame ULE (Unidirectional Lightweight Encapsulation RFC 4326) decapsulation code has a bug that incorrectly treats ULE SNDU packed into the remaining 2 or 3 bytes of a MPEG2-TS frame as having invalid pointer field on the subsequent MPEG2-TS frame. Signed-off-by: Ang Way Chuang <[email protected]> Acked-by: Jarod Wilson <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: Bug fix: make IR work again for dm1105Igor M. Liplianin3-11/+15
It makes IR to work again for dm1105 and, possibly, others. Signed-off-by: Igor M. Liplianin <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: media/IR: nec-decoder needs to select BITREVRandy Dunlap1-0/+1
Fix ir-nec-decoder build: it uses bitrev library code, so select BITREVERSE in its Kconfig. ir-nec-decoder.c:(.text+0x1a2517): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2526): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2530): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2539): undefined reference to `byte_rev_table' Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: video/saa7134: change dprintk() to i2cdprintk()Dan Carpenter1-4/+4
The problem is that dprintk() dereferences "dev" which is null here. The i2cdprintk() uses "ir" so that's OK. Also Jean Delvare pointed out a typo in the comment so we may as well fix that. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: video/saa7134: remove duplicate breakDan Carpenter1-1/+0
The original code had two break statements in a row. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: IR/imon: add auto-config for 0xffdc rf deviceJarod Wilson1-10/+17
Add auto-config support for iMON 2.4G LT RF device, based on debug output from Giulio Amodeo in Red Hat bugzilla #572288. Also flips the switch on only setting up the rf associate sysfs attr only if we think we're looking at an RF device, vs. previously, setting up the attr for all 0xffdc devices, so its possible (but a bit unlikely) there's another iMON RF device we'll have to fix up. Nb: should be applied after "IR/imon: clean up usage of bools", or there will be a slight contextual mismatch. Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: IR/imon: clean up usage of boolsJarod Wilson1-24/+24
There was a mix of 0/1 and false/true. Pick one convention and stick with it (I picked false/true). Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: em28xx: remove unneeded null checksDan Carpenter1-5/+2
The "dev" variable is used as a list cursor in a list_for_each_entry() loop and can never be null here so I removed the check. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: ngene: remove unused #include <linux/version.h>Huang Weiyi2-2/+0
Remove unused #include <linux/version.h>('s) in drivers/media/dvb/ngene/ngene-dvb.c drivers/media/dvb/ngene/ngene-i2c.c Signed-off-by: Huang Weiyi <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: ak881x needs slab.hRandy Dunlap1-0/+1
Add slab.h to fix ak881x build: drivers/media/video/ak881x.c:265:error: implicit declaration of function 'kzalloc' drivers/media/video/ak881x.c:265:warning: assignment makes pointer from integer without a cast drivers/media/video/ak881x.c:283:error: implicit declaration of function 'kfree' Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: FusionHDTV: Use quick reads for I2C IR device probingJean Delvare2-2/+26
IR support on FusionHDTV cards is broken since kernel 2.6.31. One side effect of the switch to the standard binding model for IR I2C devices was to let i2c-core do the probing instead of the ir-kbd-i2c driver. There is a slight difference between the two probe methods: i2c-core uses 0-byte writes, while the ir-kbd-i2c was using 0-byte reads. As some IR I2C devices only support reads, the new probe method fails to detect them. For now, revert to letting the driver do the probe, using 0-byte reads. In the future, i2c-core will be extended to let callers of i2c_new_probed_device() provide a custom probing function. Signed-off-by: Jean Delvare <[email protected]> Tested-by: "Timothy D. Lenz" <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: Technotrend S2-3200 ships with a TT 1500 remoteHermann Gausterer1-0/+1
The Technotrend Budget S2-3200 ships with the Technotrend 1500 bundled remote which is already supported. Just add the right Subsystem Device ID. Signed-off-by: Hermann Gausterer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: drivers/media: Use kzallocJulia Lawall2-6/+2
Use kzalloc rather than the combination of kmalloc and memset. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,size,flags; statement S; @@ -x = kmalloc(size,flags); +x = kzalloc(size,flags); if (x == NULL) S -memset(x, 0, size); // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: m920x: Select simple tunerBen Hutchings1-0/+1
Update the Kconfig selections to match the code. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: dib0700: Select dib0090 frontendBen Hutchings1-0/+1
Update the Kconfig selections to match the code. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: budget: Select correct frontendsBen Hutchings1-2/+3
Update the Kconfig selections to match the code. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: dw2102: Select tda10023 frontend, not tda10021Ben Hutchings1-1/+1
Update the Kconfig selections to match the code. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: [-next] IR: fix ir-nec-decoder build, select BITREVERSERandy Dunlap1-0/+1
Fix ir-nec-decoder build: it uses bitrev library code, so select BITREVERSE in its Kconfig. ir-nec-decoder.c:(.text+0x1a2517): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2526): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2530): undefined reference to `byte_rev_table' ir-nec-decoder.c:(.text+0x1a2539): undefined reference to `byte_rev_table' Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: Add notification to cxusb_dualdig4_rev2_frontend_attach() error ↵Prarit Bhargava1-1/+3
handling Add a notification to the dib7000p_i2c_enumeration() failure path in cxusb_dualdig4_rev2_frontend_attach(). Signed-off-by: Prarit Bhargava <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: saa7134: add RM-K6 remote control support for Avermedia M135AHerton Ronaldo Krzesinski5-93/+150
This change adds support for one more remote control type for Avermedia M135A (model RM-K6), shipped with Positivo machines. Signed-off-by: Herton Ronaldo Krzesinski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: add DVB support for tuner xc5000Stefan Ringel1-20/+49
[[email protected]: Fix compilation breakage due to duplicate cfg config delaration without {}] Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: set variable dev_mode in function tm6000_start_streamStefan Ringel1-1/+4
set variable dev_mode in function tm6000_start_stream and check mode Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: Properly select the tunersStefan Ringel1-1/+2
Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: Add control to the power ledStefan Ringel2-0/+32
Turn power led off, if device is disconnected Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: bugfix stabilizing urb dataStefan Ringel1-2/+2
Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: bugfix video imageStefan Ringel1-43/+45
bugfix: Avoid loosing frames, causing image delays on some of the image lines. [[email protected]: Fix compilation breakage by merging with the patch fix] Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: add vbi message inside the type switchStefan Ringel1-2/+4
add case line for vbi message Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: bugfix incorrect sizeStefan Ringel1-1/+5
Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000, reset I2C bus functionDmitri Belimov3-15/+20
Add new function for reset I2C bus. Rework some code for use this function. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: Remove an extra ; symbolStefan Ringel1-1/+1
Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-06-01V4L/DVB: tm6000: add extension module supportStefan Ringel4-2/+145
add module init over tm6000 extension Signed-off-by: Stefan Ringel <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>