[PARISC] Disable LWS debugging
The LWS debugging code on parisc is wrongly enabled due to a bug in the use of the preprocessor directives. This debugging code is not thread safe and causes problems with a recent glibc on SMP kernels. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
committed by
Kyle McMartin
parent
2cbd42dbf8
commit
b5e8b733a1
@@ -501,7 +501,7 @@ lws_compare_and_swap:
|
|||||||
shlw %r20, 4, %r20
|
shlw %r20, 4, %r20
|
||||||
add %r20, %r28, %r20
|
add %r20, %r28, %r20
|
||||||
|
|
||||||
# ifdef ENABLE_LWS_DEBUG
|
# if ENABLE_LWS_DEBUG
|
||||||
/*
|
/*
|
||||||
DEBUG, check for deadlock!
|
DEBUG, check for deadlock!
|
||||||
If the thread register values are the same
|
If the thread register values are the same
|
||||||
@@ -550,7 +550,7 @@ cas_wouldblock:
|
|||||||
perspective
|
perspective
|
||||||
*/
|
*/
|
||||||
cas_action:
|
cas_action:
|
||||||
#if defined CONFIG_SMP && defined ENABLE_LWS_DEBUG
|
#if defined CONFIG_SMP && ENABLE_LWS_DEBUG
|
||||||
/* DEBUG */
|
/* DEBUG */
|
||||||
mfctl %cr27, %r1
|
mfctl %cr27, %r1
|
||||||
stw %r1, 4(%sr2,%r20)
|
stw %r1, 4(%sr2,%r20)
|
||||||
@@ -562,7 +562,7 @@ cas_action:
|
|||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/* Free lock */
|
/* Free lock */
|
||||||
stw %r20, 0(%sr2,%r20)
|
stw %r20, 0(%sr2,%r20)
|
||||||
# ifdef ENABLE_LWS_DEBUG
|
# if ENABLE_LWS_DEBUG
|
||||||
/* Clear thread register indicator */
|
/* Clear thread register indicator */
|
||||||
stw %r0, 4(%sr2,%r20)
|
stw %r0, 4(%sr2,%r20)
|
||||||
# endif
|
# endif
|
||||||
@@ -576,7 +576,7 @@ cas_action:
|
|||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/* Free lock */
|
/* Free lock */
|
||||||
stw %r20, 0(%sr2,%r20)
|
stw %r20, 0(%sr2,%r20)
|
||||||
# ifdef ENABLE_LWS_DEBUG
|
# if ENABLE_LWS_DEBUG
|
||||||
stw %r0, 4(%sr2,%r20)
|
stw %r0, 4(%sr2,%r20)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user