summaryrefslogtreecommitdiff
path: root/drivers/sensors/brcm/ssp_sensorhub.h
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2016-08-17 16:19:50 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:52:40 +0900
commit6ad8c7530d23d78eb246880073181421bf44e468 (patch)
tree02a48bea138e220e92afc874dc9bfd826a127b30 /drivers/sensors/brcm/ssp_sensorhub.h
parentd88dca7c24f8cd65bb07a70518559c7bcfd97395 (diff)
sensors: brcm: use non atomic sleeps instead of atomic delays
Do not use mdelay in non atomic contexts, use the appropriate *sleep functions instead. mdelay should be used only in atomic contexts, out from atomic it keeps looping over the CPU wasting unnecessary resources. Replace the mdelay's with: - usleep_range for 10us - 20ms delays, - msleep for over 20ms Change-Id: Id03238f3918f43cb42c31ef258a12c3e7f4506a5 Reported-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Diffstat (limited to 'drivers/sensors/brcm/ssp_sensorhub.h')
0 files changed, 0 insertions, 0 deletions