diff options
author | Mike J. Chen <mjchen@google.com> | 2012-05-24 15:12:36 -0700 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-08-30 21:46:25 +0200 |
commit | de60756ed5f5a5c82d5c799850148f68346e5918 (patch) | |
tree | d68a7e8680c7dbccadf724da39fa0a9ccef09481 /sound | |
parent | feca1186149f919d90e5e8ae0582c1331afbd0dd (diff) | |
download | kernel_samsung_crespo-de60756ed5f5a5c82d5c799850148f68346e5918.zip kernel_samsung_crespo-de60756ed5f5a5c82d5c799850148f68346e5918.tar.gz kernel_samsung_crespo-de60756ed5f5a5c82d5c799850148f68346e5918.tar.bz2 |
ARM: disable preemption in machine_shutdown
Since the smp call to stop the other cpus are handled in those
cpus in interrupt context, there's a potential for those smp
handlers to interrupt threads holding spin locks (such as the
one a mutex holds). This prevents those threads from ever
releasing their spin lock, so if the cpu doing the shutdown
is allowed to switch to another thread that tries to grab the
same lock/mutex, we could get into a deadlock (the spin lock
call is called with preemption disabled in the mutex lock code).
To avoid that possibility, disable preemption before doing the
smp_send_stop().
Change-Id: I7976c5382d7173fcb3cd14da8cc5083d442b2544
Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions