lkml.org 
[lkml]   [2009]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 1.5/2] generic-smp: fix initial quiesent count.
From
Date
Subject: generic-smp: fix initial quiesent count.
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
Date: Sat Feb 14 15:36:07 CET 2009

If we start with a quiesent sequence count of 0, we'll match the initial stamp
values of the cfd_data, and never make any progress.

To avoid getting stuck in this situation, start out with an increased quiesent
sequence count.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
kernel/smp.c | 1 +
1 file changed, 1 insertion(+)

Index: linux-2.6/kernel/smp.c
===================================================================
--- linux-2.6.orig/kernel/smp.c
+++ linux-2.6/kernel/smp.c
@@ -27,6 +27,7 @@ static struct {
} call_function __cacheline_aligned_in_smp = {
.queue = LIST_HEAD_INIT(call_function.queue),
.lock = __SPIN_LOCK_UNLOCKED(call_function.lock),
+ .quiesent = 1;
};

enum {



\
 
 \ /
  Last update: 2009-02-14 15:43    [W:1.746 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site