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
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
trigger
chrdev.h
iio.h
industrialio-core.c Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
industrialio-ring.c
industrialio-trigger.c
Kconfig
Makefile
ring_generic.h
ring_hw.h
ring_sw.c staging: Use GFP_ATOMIC when a lock is held 2010-06-04 13:38:57 -07:00
ring_sw.h
sysfs.h
TODO
trigger_consumer.h
trigger.h