linux/drivers/staging/iio
Julia Lawall 0aa3f139cd staging: Use GFP_ATOMIC when a lock is held
In each case, the containing function is only called from one place, where
a spin 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
    when any
  GFP_KERNEL@p
 ... when any
}

@locked@
identifier gfp.fn;
@@

spin_lock(...)
... when != spin_unlock
fn(...)

@depends on locked@
position gfp.p;
@@

- GFP_KERNEL@p
+ GFP_ATOMIC
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Marek Lindner <lindner_marek@yahoo.de>
Cc: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 13:38:57 -07:00
..
accel Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
adc i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
Documentation Staging: iio-utils: fix memory overflow for dynamically allocateded memory to hold filename 2010-06-04 13:38:57 -07:00
gyro staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
imu staging: iio: adis16350 and similar IMU driver 2010-05-18 14:44:28 -07:00
light i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
magnetometer staging: iio: Break up gyro.h and move to new abi 2010-05-11 14:33:24 -07:00
trigger Staging: iio: trigger: fix up some global variables 2010-05-11 11:36:10 -07:00
chrdev.h staging:iio: Directory name changes to match new ABI. 2010-05-11 11:36:05 -07:00
iio.h staging: iio: Move from class to bus 2010-05-11 11:36:05 -07:00
industrialio-core.c Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
industrialio-ring.c Staging: iio: industrialio-ring.c: fix up sparse warnings 2010-05-11 11:36:11 -07:00
industrialio-trigger.c Staging: iio: industrialio-trigger.c: minor fixups 2010-05-11 11:36:11 -07:00
Kconfig staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
Makefile staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
ring_generic.h staging:iio: Remove naming via IDR's where no longer necessary under new abi. 2010-05-11 11:36:06 -07:00
ring_hw.h Staging: IIO: VTI sca3000 series accelerometer driver (spi) 2009-09-15 12:02:24 -07:00
ring_sw.c staging: Use GFP_ATOMIC when a lock is held 2010-06-04 13:38:57 -07:00
ring_sw.h drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
sysfs.h staging:iio: Add new attrs for sampling frequency available and temp_raw 2010-05-11 11:36:04 -07:00
TODO Staging: IIO: Add todo list for staging 2009-09-15 12:02:26 -07:00
trigger.h Staging: iio: lots of doc fixes 2009-12-11 12:23:05 -08:00
trigger_consumer.h Staging: iio: Staticise non-exported functions 2010-03-03 16:43:02 -08:00