diff options
author | Tejun Heo <[email protected]> | 2010-12-08 20:57:42 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2010-12-16 17:53:39 +0100 |
commit | c8d2e937355d02db3055c2fc203e5f017297ee1f (patch) | |
tree | a6055c0940d5e8d9f282da45adf43e84a038e470 /tools/perf/util/trace-event-scripting.c | |
parent | 93aae17af1172c40c6f74b7294e93a90c3cfaa5d (diff) |
sd: implement sd_check_events()
Replace sd_media_change() with sd_check_events(). sd used to set the
changed state whenever the device is not ready, which can cause event
loop while the device is not ready. Media presence handling code is
changed such that the changed state is set iff the media presence
actually changes. UA still always sets the changed state and
NOT_READY always (at least where it used to set ->changed) clears
media presence, so no event is lost.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Kay Sievers <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions