[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/kernel/devel linux-2.6-optimise-spinlock-debug.patch,1.2,1.3



Author: davej

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24769

Modified Files:
	linux-2.6-optimise-spinlock-debug.patch 
Log Message:
Even under contention, we shouldn't spin long enough to have to relax,
and it does have an impact on uber-boxen.


linux-2.6-optimise-spinlock-debug.patch:
 spinlock_debug.c |    3 ---
 1 files changed, 3 deletions(-)

Index: linux-2.6-optimise-spinlock-debug.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6-optimise-spinlock-debug.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux-2.6-optimise-spinlock-debug.patch	21 Mar 2006 22:03:59 -0000	1.2
+++ linux-2.6-optimise-spinlock-debug.patch	11 Jun 2006 23:37:27 -0000	1.3
@@ -1,42 +1,27 @@
 
 --- linux-2.6.16/lib/spinlock_debug.c~	2006-03-20 16:31:13.000000000 -0500
 +++ linux-2.6.16/lib/spinlock_debug.c	2006-03-20 16:31:24.000000000 -0500
-@@ -9,8 +9,9 @@
- #include <linux/config.h>
- #include <linux/spinlock.h>
- #include <linux/interrupt.h>
- #include <linux/delay.h>
- #include <linux/module.h>
-+#include <asm/processor.h>
- 
- int nopanic;
- static int __init nopanic_setup(char *str)
---- linux-2.6.16/lib/spinlock_debug.c~	2006-03-20 16:29:56.000000000 -0500
-+++ linux-2.6.16/lib/spinlock_debug.c	2006-03-20 16:30:52.000000000 -0500
-@@ -88,7 +88,7 @@ static void __spin_lock_debug(spinlock_t
+@@ -88,7 +88,6 @@ static void __spin_lock_debug(spinlock_t
  		for (i = 0; i < loops_per_jiffy * HZ; i++) {
  			if (__raw_spin_trylock(&lock->raw_lock))
  				return;
 -			__delay(1);
-+			cpu_relax();
  		}
  		/* lockup suspected: */
  		if (print_once) {
-@@ -160,7 +160,7 @@ static void __read_lock_debug(rwlock_t *
+@@ -160,7 +160,6 @@ static void __read_lock_debug(rwlock_t *
  		for (i = 0; i < loops_per_jiffy * HZ; i++) {
  			if (__raw_read_trylock(&lock->raw_lock))
  				return;
 -			__delay(1);
-+			cpu_relax();
  		}
  		/* lockup suspected: */
  		if (print_once) {
-@@ -233,7 +233,7 @@ static void __write_lock_debug(rwlock_t 
+@@ -233,7 +233,6 @@ static void __write_lock_debug(rwlock_t 
  		for (i = 0; i < loops_per_jiffy * HZ; i++) {
  			if (__raw_write_trylock(&lock->raw_lock))
  				return;
 -			__delay(1);
-+			cpu_relax();
  		}
  		/* lockup suspected: */
  		if (print_once) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]