mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-05 18:59:58 +00:00
c61dace9a1
This converts adb.c to use the kthread API. It also changes adb_request so that if the ADBREQ_SYNC flag is specified, we now sleep waiting for the request to finish using an on-stack completion rather than spinning. To implement this, we now require that if the ADBREQ_SYNC flag is set, the `done' parameter must be NULL. All of the existing callers of adb_request that pass ADBREQ_SYNC appear to be in process context and have done == NULL. Doing this allows us to get rid of an awful hack in adb_request() where we used to test whether the request was coming from the adb probe task and use a completion if it was, and otherwise spin. This also gets rid of a static request block that was used if the req parameter to adb_request was NULL. None of the callers do that any more, so the static request block is no longer necessary. Signed-off-by: Paul Mackerras <paulus@samba.org> |
||
---|---|---|
.. | ||
adb-iop.c | ||
adb.c | ||
adbhid.c | ||
ans-lcd.c | ||
ans-lcd.h | ||
apm_emu.c | ||
Kconfig | ||
mac_hid.c | ||
macio-adb.c | ||
macio_asic.c | ||
macio_sysfs.c | ||
Makefile | ||
mediabay.c | ||
nvram.c | ||
rack-meter.c | ||
smu.c | ||
therm_adt746x.c | ||
therm_pm72.c | ||
therm_pm72.h | ||
therm_windtunnel.c | ||
via-cuda.c | ||
via-macii.c | ||
via-maciisi.c | ||
via-pmu-backlight.c | ||
via-pmu-event.c | ||
via-pmu-event.h | ||
via-pmu-led.c | ||
via-pmu.c | ||
via-pmu68k.c | ||
windfarm.h | ||
windfarm_core.c | ||
windfarm_cpufreq_clamp.c | ||
windfarm_lm75_sensor.c | ||
windfarm_max6690_sensor.c | ||
windfarm_pid.c | ||
windfarm_pid.h | ||
windfarm_pm81.c | ||
windfarm_pm91.c | ||
windfarm_pm112.c | ||
windfarm_smu_controls.c | ||
windfarm_smu_sat.c | ||
windfarm_smu_sensors.c |