Skip to content

Commit b5e8b73

Browse files
aurel32Kyle McMartin
authored andcommitted
[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>
1 parent 2cbd42d commit b5e8b73

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/parisc/kernel/syscall.S‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ lws_compare_and_swap:
501501
shlw %r20, 4, %r20
502502
add %r20, %r28, %r20
503503

504-
# ifdef ENABLE_LWS_DEBUG
504+
# if ENABLE_LWS_DEBUG
505505
/*
506506
DEBUG, check for deadlock!
507507
If the thread register values are the same
@@ -550,7 +550,7 @@ cas_wouldblock:
550550
perspective
551551
*/
552552
cas_action:
553-
#if defined CONFIG_SMP && defined ENABLE_LWS_DEBUG
553+
#if defined CONFIG_SMP && ENABLE_LWS_DEBUG
554554
/* DEBUG */
555555
mfctl %cr27, %r1
556556
stw %r1, 4(%sr2,%r20)
@@ -562,7 +562,7 @@ cas_action:
562562
#ifdef CONFIG_SMP
563563
/* Free lock */
564564
stw %r20, 0(%sr2,%r20)
565-
# ifdef ENABLE_LWS_DEBUG
565+
# if ENABLE_LWS_DEBUG
566566
/* Clear thread register indicator */
567567
stw %r0, 4(%sr2,%r20)
568568
# endif
@@ -576,7 +576,7 @@ cas_action:
576576
#ifdef CONFIG_SMP
577577
/* Free lock */
578578
stw %r20, 0(%sr2,%r20)
579-
# ifdef ENABLE_LWS_DEBUG
579+
# if ENABLE_LWS_DEBUG
580580
stw %r0, 4(%sr2,%r20)
581581
# endif
582582
#endif

0 commit comments

Comments
 (0)