Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4c013f5c7ea39cd62e02c80408560751b4e8c0de
Commit:     4c013f5c7ea39cd62e02c80408560751b4e8c0de
Parent:     ddd6fc7923fbcfbb53f9431cbc981b1c12636e14
Author:     Dean Nelson <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 7 07:53:06 2007 -0600
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Fri Nov 9 12:59:14 2007 -0800

    [IA64] XPC heartbeat timer function must run on CPU 0
    
    Currently, XPC's heartbeat timer function runs on whatever CPU 
modprobe/insmod
    ran on when XPC was started. To avoid the heartbeat from being delayed for
    long periods the timer function must run on CPU 0.
    
    N.B. Altix doesn't currently allow cpu0 to be taken offline, so this is
    safe for now.  This code must be revised when offline of cpu0 is enabled.
    
    Signed-off-by: Dean Nelson <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/sn/kernel/xpc_main.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/arch/ia64/sn/kernel/xpc_main.c b/arch/ia64/sn/kernel/xpc_main.c
index e336e16..81785b7 100644
--- a/arch/ia64/sn/kernel/xpc_main.c
+++ b/arch/ia64/sn/kernel/xpc_main.c
@@ -3,7 +3,7 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
- * Copyright (c) 2004-2006 Silicon Graphics, Inc.  All Rights Reserved.
+ * Copyright (c) 2004-2007 Silicon Graphics, Inc.  All Rights Reserved.
  */
 
 
@@ -257,7 +257,9 @@ xpc_hb_checker(void *ignore)
 
        set_cpus_allowed(current, cpumask_of_cpu(XPC_HB_CHECK_CPU));
 
+       /* set our heartbeating to other partitions into motion */
        xpc_hb_check_timeout = jiffies + (xpc_hb_check_interval * HZ);
+       xpc_hb_beater(0);
 
        while (!(volatile int) xpc_exiting) {
 
@@ -1338,16 +1340,8 @@ xpc_init(void)
                dev_warn(xpc_part, "can't register die notifier\n");
        }
 
-
-       /*
-        * Set the beating to other partitions into motion.  This is
-        * the last requirement for other partitions' discovery to
-        * initiate communications with us.
-        */
        init_timer(&xpc_hb_timer);
        xpc_hb_timer.function = xpc_hb_beater;
-       xpc_hb_beater(0);
-
 
        /*
         * The real work-horse behind xpc.  This processes incoming
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to