[PATCH 2.6] small Altix mod [1/2]

From: Pat Gefre (pfg_at_sgi.com)
Date: 02/04/04

  • Next message: Jim Faulkner: "Re: major network performance difference between 2.4 and 2.6.2-rc2"
    To: linux-kernel@vger.kernel.org
    Date:	Wed, 4 Feb 2004 14:26:34 -0600 (CST)
    
    

    Here's a small mod to the Altix code.

    -- Pat

    # This is a BitKeeper generated patch for the following project:
    # Project Name: Linux kernel tree
    # This patch format is intended for GNU patch command version 2.5 or higher.
    # This patch includes the following deltas:
    # ChangeSet 1.1519 -> 1.1520
    # arch/ia64/sn/io/sn2/ml_SN_intr.c 1.8 -> 1.9
    #
    # The following is the BitKeeper ChangeSet Log
    # --------------------------------------------
    # 04/01/16 pfg@attica.americas.sgi.com 1.1520
    # arch/ia64/sn/io/sn2/ml_SN_intr.c
    # Use the pda to keep the num of interrupts
    # --------------------------------------------
    #
    diff -Nru a/arch/ia64/sn/io/sn2/ml_SN_intr.c b/arch/ia64/sn/io/sn2/ml_SN_intr.c
    --- a/arch/ia64/sn/io/sn2/ml_SN_intr.c Fri Jan 16 16:13:35 2004
    +++ b/arch/ia64/sn/io/sn2/ml_SN_intr.c Fri Jan 16 16:13:35 2004
    @@ -30,6 +30,7 @@
     #include <asm/sal.h>
     #include <asm/sn/sn_sal.h>
     #include <asm/sn/sn2/shub_mmr.h>
    +#include <asm/sn/pda.h>
     
     extern irqpda_t *irqpdaindr;
     extern cnodeid_t master_node_get(vertex_hdl_t vhdl);
    @@ -216,7 +217,6 @@
     {
             cpuid_t cpu, best_cpu = CPU_NONE;
             int slice, min_count = 1000;
    - irqpda_t *irqs;
     
             for (slice = CPUS_PER_NODE - 1; slice >= 0; slice--) {
                     int intrs;
    @@ -227,8 +227,7 @@
                     if (!cpu_online(cpu))
                             continue;
     
    - irqs = irqpdaindr;
    - intrs = irqs->num_irq_used;
    + intrs = pdacpu(cpu)->sn_num_irqs;
     
                     if (min_count > intrs) {
                             min_count = intrs;
    @@ -243,6 +242,7 @@
                             }
                     }
             }
    + pdacpu(best_cpu)->sn_num_irqs++;
             return best_cpu;
     }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jim Faulkner: "Re: major network performance difference between 2.4 and 2.6.2-rc2"

    Relevant Pages

    • Re: [parisc-linux] Re: [PATCH 3/9] mm: parisc pte atomicity
      ... using your own tmpalias area sounds much better than getting ... I've simply not wrapped my head around the races, ... it looks like we agree that my patch is necessary and valid as is; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: keyboard - was: Re: Linux 2.6.0-test4
      ... >> I was able to get the key unstuck by switching back and forth between ... I rebuild my kernel including your patch; ... I'll get back to you once I verify that the problem doesn't occur ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CFT][PATCH] 2.6.4-rc1 remove x86 boot page tables
      ... > For VISWS I think you actually need to turn paging off explicitly. ... The patch will need a few tweaks but it should be fairly straight forward. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] clarify message and give support contact for non-GPL modules
      ... The author of the second module ... So here is another attempt at the patch. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: [PATCH 4/5] random periodicity detection fix
      ... >> WAY overestimating input entropy. ... > My patch did the opposite of your patch: ... 5/5 is a step in that direction, but the filtering is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)