aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMiquel Raynal <[email protected]>2017-12-22 17:14:12 +0100
committerEduardo Valentin <[email protected]>2018-01-01 13:25:19 -0800
commit64163681a25e00182f727caa3a57ffe8d70f1022 (patch)
tree9775cb18fdacc6fd65e2d309fe94c3fa65dae5d0 /lib/memory-notifier-error-inject.c
parent8c0b888f6610d0ebbc4bdfb52d2fef9f4a11adfc (diff)
thermal: armada: Wait sensors validity before exiting the init callback
The thermal core will check for sensors validity right after the initialization callback has returned. As the initialization routine make a reset, the sensors are not ready immediately and the core spawns an error in the dmesg. Avoid this annoying situation by polling on the validity bit before exiting from these routines. This also avoid the use of blind sleeps. Suggested-by: David Sniatkiwicz <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Gregory CLEMENT <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions