28 Oct, 2010

1 commit


12 Oct, 2010

1 commit


29 Aug, 2009

1 commit


28 Mar, 2009

1 commit


12 Jan, 2009

2 commits

  • Ingo Molnar wrote:

    > All non-x86 architectures fail to build:
    >
    > In file included from /home/mingo/tip/include/linux/random.h:11,
    > from /home/mingo/tip/include/linux/stackprotector.h:6,
    > from /home/mingo/tip/init/main.c:17:
    > /home/mingo/tip/include/linux/irqnr.h:26:63: error: asm/irq_vectors.h: No such file or directory

    Do not include asm/irq_vectors.h in generic code - it's not available
    on all architectures.

    Signed-off-by: Ingo Molnar

    Mike Travis
     
  • Impact: Reduce memory usage.

    This is the second half of the changes to make the irq_desc_ptrs be
    variable sized based on nr_cpu_ids. This is done by adding a new
    "max_nr_irqs" macro to irq_vectors.h (and a dummy in irqnr.h) to
    return a max NR_IRQS value based on NR_CPUS or nr_cpu_ids.

    This necessitated moving the define of MAX_IO_APICS to a separate
    file (asm/apicnum.h) so it could be included without the baggage
    of the other asm/apicdef.h declarations.

    Signed-off-by: Mike Travis

    Mike Travis
     

08 Jan, 2009

1 commit

  • Raja reported for_each_irq_desc() has possibility unsafeness:

    if anyone write folliwing code, for_each_irq_desc() doesn't work
    as intended:

    (right now this code does not exist at all)

    if (safe)
    for_each_irq_desc(irq, desc) {
    ...
    }
    else
    panic();

    Reported-by: Raja R Harinath
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Ingo Molnar

    KOSAKI Motohiro
     

05 Jan, 2009

1 commit

  • Impact: build fix on non-genirq architectures

    Sam Ravnborg reported this build failure on sparc32 allmodconfig,
    the GPIO drivers assume the presence of irq_to_desc():

    drivers/gpio/gpiolib.c: In function `gpiolib_dbg_show':
    drivers/gpio/gpiolib.c:1146: error: implicit declaration of function 'irq_to_desc'

    Add it in the !genirq case too.

    Reported-by: Sam Ravnborg
    Signed-off-by: Ingo Molnar
    Tested-by: Sam Ravnborg

    Ingo Molnar
     

26 Dec, 2008

2 commits

  • Impact: cleanup

    all for_each_irq_desc() usage point have !desc check.
    then its check can move into for_each_irq_desc() macro.

    Signed-off-by: KOSAKI Motohiro
    Acked-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    KOSAKI Motohiro
     
  • Impact: cleanup

    before CONFIG_SPARSE_IRQ age, for_each_irq_desc() sat in irqnr.h and
    could be called from generic code.

    CONFIG_SPARSE_IRQ breaks this assumption, but SPARSE_IRQ version
    for_each_irq_desc() also can move into irqnr.h easily.

    Also, this patch unifies CONFIG_SPARSE_IRQ and !CONFIG_SPARSE_IRQ
    for_each_irq_desc().

    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Ingo Molnar

    KOSAKI Motohiro
     

12 Dec, 2008

1 commit

  • Impact: build fix

    fix:

    In file included from /home/mingo/tip/arch/m68k/amiga/amiints.c:39:
    /home/mingo/tip/include/linux/interrupt.h:21: error: expected identifier or '('
    /home/mingo/tip/arch/m68k/amiga/amiints.c: In function 'amiga_init_IRQ':

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

09 Dec, 2008

1 commit

  • Impact: build fix on Alpha

    -tip testing found this build failure on the Alpha defconfig:

    /home/mingo/tip/fs/proc/stat.c: In function 'show_stat':
    /home/mingo/tip/fs/proc/stat.c:48: error: implicit declaration of function 'for_each_irq_desc'
    /home/mingo/tip/fs/proc/stat.c:48: error: expected ';' before '{' token

    can not use irq_desc() in stat.c on older architectures.

    Signed-off-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     

08 Dec, 2008

1 commit

  • Impact: new feature

    Problem on distro kernels: irq_desc[NR_IRQS] takes megabytes of RAM with
    NR_CPUS set to large values. The goal is to be able to scale up to much
    larger NR_IRQS value without impacting the (important) common case.

    To solve this, we generalize irq_desc[NR_IRQS] to an (optional) array of
    irq_desc pointers.

    When CONFIG_SPARSE_IRQ=y is used, we use kzalloc_node to get irq_desc,
    this also makes the IRQ descriptors NUMA-local (to the site that calls
    request_irq()).

    This gets rid of the irq_cfg[] static array on x86 as well: irq_cfg now
    uses desc->chip_data for x86 to store irq_cfg.

    Signed-off-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     

21 Oct, 2008

1 commit


18 Oct, 2008

1 commit

  • Move the irq_desc related iterators out of irq.h, into irqnr.h, also
    available via interrupt.h.

    This way non-genirq (and even non-hardirq) architectures get the
    common definitions and iterators.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Thomas Gleixner