diff options
Diffstat (limited to 'arch')
52 files changed, 438 insertions, 241 deletions
diff --git a/arch/alpha/kernel/signal.c b/arch/alpha/kernel/signal.c index 08fe8071a7f8..2e45e8604e32 100644 --- a/arch/alpha/kernel/signal.c +++ b/arch/alpha/kernel/signal.c | |||
| @@ -566,13 +566,12 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 566 | if (ka->sa.sa_flags & SA_RESETHAND) | 566 | if (ka->sa.sa_flags & SA_RESETHAND) |
| 567 | ka->sa.sa_handler = SIG_DFL; | 567 | ka->sa.sa_handler = SIG_DFL; |
| 568 | 568 | ||
| 569 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 569 | spin_lock_irq(¤t->sighand->siglock); |
| 570 | spin_lock_irq(¤t->sighand->siglock); | 570 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 571 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 571 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 572 | sigaddset(¤t->blocked,sig); | 572 | sigaddset(¤t->blocked,sig); |
| 573 | recalc_sigpending(); | 573 | recalc_sigpending(); |
| 574 | spin_unlock_irq(¤t->sighand->siglock); | 574 | spin_unlock_irq(¤t->sighand->siglock); |
| 575 | } | ||
| 576 | } | 575 | } |
| 577 | 576 | ||
| 578 | static inline void | 577 | static inline void |
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c65c6eb9810d..4bf0e8737e1f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -635,10 +635,6 @@ config PM | |||
| 635 | and the Battery Powered Linux mini-HOWTO, available from | 635 | and the Battery Powered Linux mini-HOWTO, available from |
| 636 | <http://www.tldp.org/docs.html#howto>. | 636 | <http://www.tldp.org/docs.html#howto>. |
| 637 | 637 | ||
| 638 | Note that, even if you say N here, Linux on the x86 architecture | ||
| 639 | will issue the hlt instruction if nothing is to be done, thereby | ||
| 640 | sending the processor to sleep and saving power. | ||
| 641 | |||
| 642 | config APM | 638 | config APM |
| 643 | tristate "Advanced Power Management Emulation" | 639 | tristate "Advanced Power Management Emulation" |
| 644 | depends on PM | 640 | depends on PM |
| @@ -650,12 +646,6 @@ config APM | |||
| 650 | battery status information, and user-space programs will receive | 646 | battery status information, and user-space programs will receive |
| 651 | notification of APM "events" (e.g. battery status change). | 647 | notification of APM "events" (e.g. battery status change). |
| 652 | 648 | ||
| 653 | If you select "Y" here, you can disable actual use of the APM | ||
| 654 | BIOS by passing the "apm=off" option to the kernel at boot time. | ||
| 655 | |||
| 656 | Note that the APM support is almost completely disabled for | ||
| 657 | machines with more than one CPU. | ||
| 658 | |||
| 659 | In order to use APM, you will need supporting software. For location | 649 | In order to use APM, you will need supporting software. For location |
| 660 | and more information, read <file:Documentation/pm.txt> and the | 650 | and more information, read <file:Documentation/pm.txt> and the |
| 661 | Battery Powered Linux mini-HOWTO, available from | 651 | Battery Powered Linux mini-HOWTO, available from |
| @@ -665,39 +655,12 @@ config APM | |||
| 665 | manpage ("man 8 hdparm") for that), and it doesn't turn off | 655 | manpage ("man 8 hdparm") for that), and it doesn't turn off |
| 666 | VESA-compliant "green" monitors. | 656 | VESA-compliant "green" monitors. |
| 667 | 657 | ||
| 668 | This driver does not support the TI 4000M TravelMate and the ACER | ||
| 669 | 486/DX4/75 because they don't have compliant BIOSes. Many "green" | ||
| 670 | desktop machines also don't have compliant BIOSes, and this driver | ||
| 671 | may cause those machines to panic during the boot phase. | ||
| 672 | |||
| 673 | Generally, if you don't have a battery in your machine, there isn't | 658 | Generally, if you don't have a battery in your machine, there isn't |
| 674 | much point in using this driver and you should say N. If you get | 659 | much point in using this driver and you should say N. If you get |
| 675 | random kernel OOPSes or reboots that don't seem to be related to | 660 | random kernel OOPSes or reboots that don't seem to be related to |
| 676 | anything, try disabling/enabling this option (or disabling/enabling | 661 | anything, try disabling/enabling this option (or disabling/enabling |
| 677 | APM in your BIOS). | 662 | APM in your BIOS). |
| 678 | 663 | ||
| 679 | Some other things you should try when experiencing seemingly random, | ||
| 680 | "weird" problems: | ||
| 681 | |||
| 682 | 1) make sure that you have enough swap space and that it is | ||
| 683 | enabled. | ||
| 684 | 2) pass the "no-hlt" option to the kernel | ||
| 685 | 3) switch on floating point emulation in the kernel and pass | ||
| 686 | the "no387" option to the kernel | ||
| 687 | 4) pass the "floppy=nodma" option to the kernel | ||
| 688 | 5) pass the "mem=4M" option to the kernel (thereby disabling | ||
| 689 | all but the first 4 MB of RAM) | ||
| 690 | 6) make sure that the CPU is not over clocked. | ||
| 691 | 7) read the sig11 FAQ at <http://www.bitwizard.nl/sig11/> | ||
| 692 | 8) disable the cache from your BIOS settings | ||
| 693 | 9) install a fan for the video card or exchange video RAM | ||
| 694 | 10) install a better fan for the CPU | ||
| 695 | 11) exchange RAM chips | ||
| 696 | 12) exchange the motherboard. | ||
| 697 | |||
| 698 | To compile this driver as a module, choose M here: the | ||
| 699 | module will be called apm. | ||
| 700 | |||
| 701 | endmenu | 664 | endmenu |
| 702 | 665 | ||
| 703 | source "net/Kconfig" | 666 | source "net/Kconfig" |
| @@ -752,6 +715,8 @@ source "drivers/hwmon/Kconfig" | |||
| 752 | 715 | ||
| 753 | source "drivers/misc/Kconfig" | 716 | source "drivers/misc/Kconfig" |
| 754 | 717 | ||
| 718 | source "drivers/mfd/Kconfig" | ||
| 719 | |||
| 755 | source "drivers/media/Kconfig" | 720 | source "drivers/media/Kconfig" |
| 756 | 721 | ||
| 757 | source "drivers/video/Kconfig" | 722 | source "drivers/video/Kconfig" |
diff --git a/arch/arm/common/Kconfig b/arch/arm/common/Kconfig index 692af6b5e8ff..666ba393575b 100644 --- a/arch/arm/common/Kconfig +++ b/arch/arm/common/Kconfig | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | config ICST525 | 1 | config ICST525 |
| 2 | bool | 2 | bool |
| 3 | 3 | ||
| 4 | config ARM_GIC | ||
| 5 | bool | ||
| 6 | |||
| 4 | config ICST307 | 7 | config ICST307 |
| 5 | bool | 8 | bool |
| 6 | 9 | ||
diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile index 11f20a43ee3a..a87886564b19 100644 --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | obj-y += rtctime.o | 5 | obj-y += rtctime.o |
| 6 | obj-$(CONFIG_ARM_AMBA) += amba.o | 6 | obj-$(CONFIG_ARM_AMBA) += amba.o |
| 7 | obj-$(CONFIG_ARM_GIC) += gic.o | ||
| 7 | obj-$(CONFIG_ICST525) += icst525.o | 8 | obj-$(CONFIG_ICST525) += icst525.o |
| 8 | obj-$(CONFIG_ICST307) += icst307.o | 9 | obj-$(CONFIG_ICST307) += icst307.o |
| 9 | obj-$(CONFIG_SA1111) += sa1111.o | 10 | obj-$(CONFIG_SA1111) += sa1111.o |
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c new file mode 100644 index 000000000000..51dbf5489b6b --- /dev/null +++ b/arch/arm/common/gic.c | |||
| @@ -0,0 +1,166 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/common/gic.c | ||
| 3 | * | ||
| 4 | * Copyright (C) 2002 ARM Limited, All Rights Reserved. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * Interrupt architecture for the GIC: | ||
| 11 | * | ||
| 12 | * o There is one Interrupt Distributor, which receives interrupts | ||
| 13 | * from system devices and sends them to the Interrupt Controllers. | ||
| 14 | * | ||
| 15 | * o There is one CPU Interface per CPU, which sends interrupts sent | ||
| 16 | * by the Distributor, and interrupts generated locally, to the | ||
| 17 | * associated CPU. | ||
| 18 | * | ||
| 19 | * Note that IRQs 0-31 are special - they are local to each CPU. | ||
| 20 | * As such, the enable set/clear, pending set/clear and active bit | ||
| 21 | * registers are banked per-cpu for these sources. | ||
| 22 | */ | ||
| 23 | #include <linux/init.h> | ||
| 24 | #include <linux/kernel.h> | ||
| 25 | #include <linux/list.h> | ||
| 26 | #include <linux/smp.h> | ||
| 27 | |||
| 28 | #include <asm/irq.h> | ||
| 29 | #include <asm/io.h> | ||
| 30 | #include <asm/mach/irq.h> | ||
| 31 | #include <asm/hardware/gic.h> | ||
| 32 | |||
| 33 | static void __iomem *gic_dist_base; | ||
| 34 | static void __iomem *gic_cpu_base; | ||
| 35 | |||
| 36 | /* | ||
| 37 | * Routines to acknowledge, disable and enable interrupts | ||
| 38 | * | ||
| 39 | * Linux assumes that when we're done with an interrupt we need to | ||
| 40 | * unmask it, in the same way we need to unmask an interrupt when | ||
| 41 | * we first enable it. | ||
| 42 | * | ||
| 43 | * The GIC has a seperate notion of "end of interrupt" to re-enable | ||
| 44 | * an interrupt after handling, in order to support hardware | ||
| 45 | * prioritisation. | ||
| 46 | * | ||
| 47 | * We can make the GIC behave in the way that Linux expects by making | ||
| 48 | * our "acknowledge" routine disable the interrupt, then mark it as | ||
| 49 | * complete. | ||
| 50 | */ | ||
| 51 | static void gic_ack_irq(unsigned int irq) | ||
| 52 | { | ||
| 53 | u32 mask = 1 << (irq % 32); | ||
| 54 | writel(mask, gic_dist_base + GIC_DIST_ENABLE_CLEAR + (irq / 32) * 4); | ||
| 55 | writel(irq, gic_cpu_base + GIC_CPU_EOI); | ||
| 56 | } | ||
| 57 | |||
| 58 | static void gic_mask_irq(unsigned int irq) | ||
| 59 | { | ||
| 60 | u32 mask = 1 << (irq % 32); | ||
| 61 | writel(mask, gic_dist_base + GIC_DIST_ENABLE_CLEAR + (irq / 32) * 4); | ||
| 62 | } | ||
| 63 | |||
| 64 | static void gic_unmask_irq(unsigned int irq) | ||
| 65 | { | ||
| 66 | u32 mask = 1 << (irq % 32); | ||
| 67 | writel(mask, gic_dist_base + GIC_DIST_ENABLE_SET + (irq / 32) * 4); | ||
| 68 | } | ||
| 69 | |||
| 70 | static void gic_set_cpu(struct irqdesc *desc, unsigned int irq, unsigned int cpu) | ||
| 71 | { | ||
| 72 | void __iomem *reg = gic_dist_base + GIC_DIST_TARGET + (irq & ~3); | ||
| 73 | unsigned int shift = (irq % 4) * 8; | ||
| 74 | u32 val; | ||
| 75 | |||
| 76 | val = readl(reg) & ~(0xff << shift); | ||
| 77 | val |= 1 << (cpu + shift); | ||
| 78 | writel(val, reg); | ||
| 79 | } | ||
| 80 | |||
| 81 | static struct irqchip gic_chip = { | ||
| 82 | .ack = gic_ack_irq, | ||
| 83 | .mask = gic_mask_irq, | ||
| 84 | .unmask = gic_unmask_irq, | ||
| 85 | #ifdef CONFIG_SMP | ||
| 86 | .set_cpu = gic_set_cpu, | ||
| 87 | #endif | ||
| 88 | }; | ||
| 89 | |||
| 90 | void __init gic_dist_init(void __iomem *base) | ||
| 91 | { | ||
| 92 | unsigned int max_irq, i; | ||
| 93 | u32 cpumask = 1 << smp_processor_id(); | ||
| 94 | |||
| 95 | cpumask |= cpumask << 8; | ||
| 96 | cpumask |= cpumask << 16; | ||
| 97 | |||
| 98 | gic_dist_base = base; | ||
| 99 | |||
| 100 | writel(0, base + GIC_DIST_CTRL); | ||
| 101 | |||
| 102 | /* | ||
| 103 | * Find out how many interrupts are supported. | ||
| 104 | */ | ||
| 105 | max_irq = readl(base + GIC_DIST_CTR) & 0x1f; | ||
| 106 | max_irq = (max_irq + 1) * 32; | ||
| 107 | |||
| 108 | /* | ||
| 109 | * The GIC only supports up to 1020 interrupt sources. | ||
| 110 | * Limit this to either the architected maximum, or the | ||
| 111 | * platform maximum. | ||
| 112 | */ | ||
| 113 | if (max_irq > max(1020, NR_IRQS)) | ||
| 114 | max_irq = max(1020, NR_IRQS); | ||
| 115 | |||
| 116 | /* | ||
| 117 | * Set all global interrupts to be level triggered, active low. | ||
| 118 | */ | ||
| 119 | for (i = 32; i < max_irq; i += 16) | ||
| 120 | writel(0, base + GIC_DIST_CONFIG + i * 4 / 16); | ||
| 121 | |||
| 122 | /* | ||
| 123 | * Set all global interrupts to this CPU only. | ||
| 124 | */ | ||
| 125 | for (i = 32; i < max_irq; i += 4) | ||
| 126 | writel(cpumask, base + GIC_DIST_TARGET + i * 4 / 4); | ||
| 127 | |||
| 128 | /* | ||
| 129 | * Set priority on all interrupts. | ||
| 130 | */ | ||
| 131 | for (i = 0; i < max_irq; i += 4) | ||
| 132 | writel(0xa0a0a0a0, base + GIC_DIST_PRI + i * 4 / 4); | ||
| 133 | |||
| 134 | /* | ||
| 135 | * Disable all interrupts. | ||
| 136 | */ | ||
| 137 | for (i = 0; i < max_irq; i += 32) | ||
| 138 | writel(0xffffffff, base + GIC_DIST_ENABLE_CLEAR + i * 4 / 32); | ||
| 139 | |||
| 140 | /* | ||
| 141 | * Setup the Linux IRQ subsystem. | ||
| 142 | */ | ||
| 143 | for (i = 29; i < max_irq; i++) { | ||
| 144 | set_irq_chip(i, &gic_chip); | ||
| 145 | set_irq_handler(i, do_level_IRQ); | ||
| 146 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | ||
| 147 | } | ||
| 148 | |||
| 149 | writel(1, base + GIC_DIST_CTRL); | ||
| 150 | } | ||
| 151 | |||
| 152 | void __cpuinit gic_cpu_init(void __iomem *base) | ||
| 153 | { | ||
| 154 | gic_cpu_base = base; | ||
| 155 | writel(0xf0, base + GIC_CPU_PRIMASK); | ||
| 156 | writel(1, base + GIC_CPU_CTRL); | ||
| 157 | } | ||
| 158 | |||
| 159 | #ifdef CONFIG_SMP | ||
| 160 | void gic_raise_softirq(cpumask_t cpumask, unsigned int irq) | ||
| 161 | { | ||
| 162 | unsigned long map = *cpus_addr(cpumask); | ||
| 163 | |||
| 164 | writel(map << 16 | irq, gic_dist_base + GIC_DIST_SOFTINT); | ||
| 165 | } | ||
| 166 | #endif | ||
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 5e435e42dacd..a94d75fef598 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
| @@ -658,11 +658,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
| 658 | /* | 658 | /* |
| 659 | * Block the signal if we were unsuccessful. | 659 | * Block the signal if we were unsuccessful. |
| 660 | */ | 660 | */ |
| 661 | if (ret != 0 || !(ka->sa.sa_flags & SA_NODEFER)) { | 661 | if (ret != 0) { |
| 662 | spin_lock_irq(&tsk->sighand->siglock); | 662 | spin_lock_irq(&tsk->sighand->siglock); |
| 663 | sigorsets(&tsk->blocked, &tsk->blocked, | 663 | sigorsets(&tsk->blocked, &tsk->blocked, |
| 664 | &ka->sa.sa_mask); | 664 | &ka->sa.sa_mask); |
| 665 | sigaddset(&tsk->blocked, sig); | 665 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 666 | sigaddset(&tsk->blocked, sig); | ||
| 666 | recalc_sigpending(); | 667 | recalc_sigpending(); |
| 667 | spin_unlock_irq(&tsk->sighand->siglock); | 668 | spin_unlock_irq(&tsk->sighand->siglock); |
| 668 | } | 669 | } |
diff --git a/arch/arm/mach-ixp4xx/coyote-setup.c b/arch/arm/mach-ixp4xx/coyote-setup.c index 7f58afb27e71..411ea9996190 100644 --- a/arch/arm/mach-ixp4xx/coyote-setup.c +++ b/arch/arm/mach-ixp4xx/coyote-setup.c | |||
| @@ -36,7 +36,7 @@ static struct flash_platform_data coyote_flash_data = { | |||
| 36 | 36 | ||
| 37 | static struct resource coyote_flash_resource = { | 37 | static struct resource coyote_flash_resource = { |
| 38 | .start = COYOTE_FLASH_BASE, | 38 | .start = COYOTE_FLASH_BASE, |
| 39 | .end = COYOTE_FLASH_BASE + COYOTE_FLASH_SIZE, | 39 | .end = COYOTE_FLASH_BASE + COYOTE_FLASH_SIZE - 1, |
| 40 | .flags = IORESOURCE_MEM, | 40 | .flags = IORESOURCE_MEM, |
| 41 | }; | 41 | }; |
| 42 | 42 | ||
diff --git a/arch/arm/mach-ixp4xx/gtwx5715-setup.c b/arch/arm/mach-ixp4xx/gtwx5715-setup.c index 65e356bd10d6..333459d6aa46 100644 --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c | |||
| @@ -114,7 +114,7 @@ static struct flash_platform_data gtwx5715_flash_data = { | |||
| 114 | 114 | ||
| 115 | static struct resource gtwx5715_flash_resource = { | 115 | static struct resource gtwx5715_flash_resource = { |
| 116 | .start = GTWX5715_FLASH_BASE, | 116 | .start = GTWX5715_FLASH_BASE, |
| 117 | .end = GTWX5715_FLASH_BASE + GTWX5715_FLASH_SIZE, | 117 | .end = GTWX5715_FLASH_BASE + GTWX5715_FLASH_SIZE - 1, |
| 118 | .flags = IORESOURCE_MEM, | 118 | .flags = IORESOURCE_MEM, |
| 119 | }; | 119 | }; |
| 120 | 120 | ||
diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-ixp4xx/ixdp425-setup.c index 4633470a6a37..fa0646c8693b 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-setup.c +++ b/arch/arm/mach-ixp4xx/ixdp425-setup.c | |||
| @@ -36,7 +36,7 @@ static struct flash_platform_data ixdp425_flash_data = { | |||
| 36 | 36 | ||
| 37 | static struct resource ixdp425_flash_resource = { | 37 | static struct resource ixdp425_flash_resource = { |
| 38 | .start = IXDP425_FLASH_BASE, | 38 | .start = IXDP425_FLASH_BASE, |
| 39 | .end = IXDP425_FLASH_BASE + IXDP425_FLASH_SIZE, | 39 | .end = IXDP425_FLASH_BASE + IXDP425_FLASH_SIZE - 1, |
| 40 | .flags = IORESOURCE_MEM, | 40 | .flags = IORESOURCE_MEM, |
| 41 | }; | 41 | }; |
| 42 | 42 | ||
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c index 4d4d303ee3a8..24687f511bf5 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
| 36 | #include <asm/mach/serial_sa1100.h> | 36 | #include <asm/mach/serial_sa1100.h> |
| 37 | #include <asm/arch/assabet.h> | 37 | #include <asm/arch/assabet.h> |
| 38 | #include <asm/arch/mcp.h> | ||
| 38 | 39 | ||
| 39 | #include "generic.h" | 40 | #include "generic.h" |
| 40 | 41 | ||
| @@ -198,6 +199,11 @@ static struct irda_platform_data assabet_irda_data = { | |||
| 198 | .set_speed = assabet_irda_set_speed, | 199 | .set_speed = assabet_irda_set_speed, |
| 199 | }; | 200 | }; |
| 200 | 201 | ||
| 202 | static struct mcp_plat_data assabet_mcp_data = { | ||
| 203 | .mccr0 = MCCR0_ADM, | ||
| 204 | .sclk_rate = 11981000, | ||
| 205 | }; | ||
| 206 | |||
| 201 | static void __init assabet_init(void) | 207 | static void __init assabet_init(void) |
| 202 | { | 208 | { |
| 203 | /* | 209 | /* |
| @@ -246,6 +252,7 @@ static void __init assabet_init(void) | |||
| 246 | sa11x0_set_flash_data(&assabet_flash_data, assabet_flash_resources, | 252 | sa11x0_set_flash_data(&assabet_flash_data, assabet_flash_resources, |
| 247 | ARRAY_SIZE(assabet_flash_resources)); | 253 | ARRAY_SIZE(assabet_flash_resources)); |
| 248 | sa11x0_set_irda_data(&assabet_irda_data); | 254 | sa11x0_set_irda_data(&assabet_irda_data); |
| 255 | sa11x0_set_mcp_data(&assabet_mcp_data); | ||
| 249 | } | 256 | } |
| 250 | 257 | ||
| 251 | /* | 258 | /* |
diff --git a/arch/arm/mach-sa1100/cerf.c b/arch/arm/mach-sa1100/cerf.c index 0aa918e24c31..9484be7dc671 100644 --- a/arch/arm/mach-sa1100/cerf.c +++ b/arch/arm/mach-sa1100/cerf.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <asm/mach/serial_sa1100.h> | 29 | #include <asm/mach/serial_sa1100.h> |
| 30 | 30 | ||
| 31 | #include <asm/arch/cerf.h> | 31 | #include <asm/arch/cerf.h> |
| 32 | #include <asm/arch/mcp.h> | ||
| 32 | #include "generic.h" | 33 | #include "generic.h" |
| 33 | 34 | ||
| 34 | static struct resource cerfuart2_resources[] = { | 35 | static struct resource cerfuart2_resources[] = { |
| @@ -116,10 +117,16 @@ static void __init cerf_map_io(void) | |||
| 116 | GPDR |= CERF_GPIO_CF_RESET; | 117 | GPDR |= CERF_GPIO_CF_RESET; |
| 117 | } | 118 | } |
| 118 | 119 | ||
| 120 | static struct mcp_plat_data cerf_mcp_data = { | ||
| 121 | .mccr0 = MCCR0_ADM, | ||
| 122 | .sclk_rate = 11981000, | ||
| 123 | }; | ||
| 124 | |||
| 119 | static void __init cerf_init(void) | 125 | static void __init cerf_init(void) |
| 120 | { | 126 | { |
| 121 | platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices)); | 127 | platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices)); |
| 122 | sa11x0_set_flash_data(&cerf_flash_data, &cerf_flash_resource, 1); | 128 | sa11x0_set_flash_data(&cerf_flash_data, &cerf_flash_resource, 1); |
| 129 | sa11x0_set_mcp_data(&cerf_mcp_data); | ||
| 123 | } | 130 | } |
| 124 | 131 | ||
| 125 | MACHINE_START(CERF, "Intrinsyc CerfBoard/CerfCube") | 132 | MACHINE_START(CERF, "Intrinsyc CerfBoard/CerfCube") |
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 95ae217be1bc..3f1e358455e5 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c | |||
| @@ -221,6 +221,11 @@ static struct platform_device sa11x0mcp_device = { | |||
| 221 | .resource = sa11x0mcp_resources, | 221 | .resource = sa11x0mcp_resources, |
| 222 | }; | 222 | }; |
| 223 | 223 | ||
| 224 | void sa11x0_set_mcp_data(struct mcp_plat_data *data) | ||
| 225 | { | ||
| 226 | sa11x0mcp_device.dev.platform_data = data; | ||
| 227 | } | ||
| 228 | |||
| 224 | static struct resource sa11x0ssp_resources[] = { | 229 | static struct resource sa11x0ssp_resources[] = { |
| 225 | [0] = { | 230 | [0] = { |
| 226 | .start = 0x80070000, | 231 | .start = 0x80070000, |
diff --git a/arch/arm/mach-sa1100/generic.h b/arch/arm/mach-sa1100/generic.h index bfe41da9923e..279e3afa3c39 100644 --- a/arch/arm/mach-sa1100/generic.h +++ b/arch/arm/mach-sa1100/generic.h | |||
| @@ -34,5 +34,8 @@ struct resource; | |||
| 34 | extern void sa11x0_set_flash_data(struct flash_platform_data *flash, | 34 | extern void sa11x0_set_flash_data(struct flash_platform_data *flash, |
| 35 | struct resource *res, int nr); | 35 | struct resource *res, int nr); |
| 36 | 36 | ||
| 37 | struct sa11x0_ssp_plat_ops; | ||
| 38 | extern void sa11x0_set_ssp_data(struct sa11x0_ssp_plat_ops *ops); | ||
| 39 | |||
| 37 | struct irda_platform_data; | 40 | struct irda_platform_data; |
| 38 | void sa11x0_set_irda_data(struct irda_platform_data *irda); | 41 | void sa11x0_set_irda_data(struct irda_platform_data *irda); |
diff --git a/arch/arm/mach-sa1100/lart.c b/arch/arm/mach-sa1100/lart.c index 870b488aeda4..ed6744d480af 100644 --- a/arch/arm/mach-sa1100/lart.c +++ b/arch/arm/mach-sa1100/lart.c | |||
| @@ -13,12 +13,23 @@ | |||
| 13 | #include <asm/mach/arch.h> | 13 | #include <asm/mach/arch.h> |
| 14 | #include <asm/mach/map.h> | 14 | #include <asm/mach/map.h> |
| 15 | #include <asm/mach/serial_sa1100.h> | 15 | #include <asm/mach/serial_sa1100.h> |
| 16 | #include <asm/arch/mcp.h> | ||
| 16 | 17 | ||
| 17 | #include "generic.h" | 18 | #include "generic.h" |
| 18 | 19 | ||
| 19 | 20 | ||
| 20 | #warning "include/asm/arch-sa1100/ide.h needs fixing for lart" | 21 | #warning "include/asm/arch-sa1100/ide.h needs fixing for lart" |
| 21 | 22 | ||
| 23 | static struct mcp_plat_data lart_mcp_data = { | ||
| 24 | .mccr0 = MCCR0_ADM, | ||
| 25 | .sclk_rate = 11981000, | ||
| 26 | }; | ||
| 27 | |||
| 28 | static void __init lart_init(void) | ||
| 29 | { | ||
| 30 | sa11x0_set_mcp_data(&lart_mcp_data); | ||
| 31 | } | ||
| 32 | |||
| 22 | static struct map_desc lart_io_desc[] __initdata = { | 33 | static struct map_desc lart_io_desc[] __initdata = { |
| 23 | /* virtual physical length type */ | 34 | /* virtual physical length type */ |
| 24 | { 0xe8000000, 0x00000000, 0x00400000, MT_DEVICE }, /* main flash memory */ | 35 | { 0xe8000000, 0x00000000, 0x00400000, MT_DEVICE }, /* main flash memory */ |
| @@ -47,5 +58,6 @@ MACHINE_START(LART, "LART") | |||
| 47 | .boot_params = 0xc0000100, | 58 | .boot_params = 0xc0000100, |
| 48 | .map_io = lart_map_io, | 59 | .map_io = lart_map_io, |
| 49 | .init_irq = sa1100_init_irq, | 60 | .init_irq = sa1100_init_irq, |
| 61 | .init_machine = lart_init, | ||
| 50 | .timer = &sa1100_timer, | 62 | .timer = &sa1100_timer, |
| 51 | MACHINE_END | 63 | MACHINE_END |
diff --git a/arch/arm/mach-sa1100/shannon.c b/arch/arm/mach-sa1100/shannon.c index 43a00359fcdd..7482288278d9 100644 --- a/arch/arm/mach-sa1100/shannon.c +++ b/arch/arm/mach-sa1100/shannon.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <asm/mach/flash.h> | 18 | #include <asm/mach/flash.h> |
| 19 | #include <asm/mach/map.h> | 19 | #include <asm/mach/map.h> |
| 20 | #include <asm/mach/serial_sa1100.h> | 20 | #include <asm/mach/serial_sa1100.h> |
| 21 | #include <asm/arch/mcp.h> | ||
| 21 | #include <asm/arch/shannon.h> | 22 | #include <asm/arch/shannon.h> |
| 22 | 23 | ||
| 23 | #include "generic.h" | 24 | #include "generic.h" |
| @@ -52,9 +53,15 @@ static struct resource shannon_flash_resource = { | |||
| 52 | .flags = IORESOURCE_MEM, | 53 | .flags = IORESOURCE_MEM, |
| 53 | }; | 54 | }; |
| 54 | 55 | ||
| 56 | static struct mcp_plat_data shannon_mcp_data = { | ||
| 57 | .mccr0 = MCCR0_ADM, | ||
| 58 | .sclk_rate = 11981000, | ||
| 59 | }; | ||
| 60 | |||
| 55 | static void __init shannon_init(void) | 61 | static void __init shannon_init(void) |
| 56 | { | 62 | { |
| 57 | sa11x0_set_flash_data(&shannon_flash_data, &shannon_flash_resource, 1); | 63 | sa11x0_set_flash_data(&shannon_flash_data, &shannon_flash_resource, 1); |
| 64 | sa11x0_set_mcp_data(&shannon_mcp_data); | ||
| 58 | } | 65 | } |
| 59 | 66 | ||
| 60 | static void __init shannon_map_io(void) | 67 | static void __init shannon_map_io(void) |
diff --git a/arch/arm/mach-sa1100/simpad.c b/arch/arm/mach-sa1100/simpad.c index 77978586b126..07f6d5fd7bb0 100644 --- a/arch/arm/mach-sa1100/simpad.c +++ b/arch/arm/mach-sa1100/simpad.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <asm/mach/flash.h> | 23 | #include <asm/mach/flash.h> |
| 24 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
| 25 | #include <asm/mach/serial_sa1100.h> | 25 | #include <asm/mach/serial_sa1100.h> |
| 26 | #include <asm/arch/mcp.h> | ||
| 26 | #include <asm/arch/simpad.h> | 27 | #include <asm/arch/simpad.h> |
| 27 | 28 | ||
| 28 | #include <linux/serial_core.h> | 29 | #include <linux/serial_core.h> |
| @@ -123,6 +124,11 @@ static struct resource simpad_flash_resources [] = { | |||
| 123 | } | 124 | } |
| 124 | }; | 125 | }; |
| 125 | 126 | ||
| 127 | static struct mcp_plat_data simpad_mcp_data = { | ||
| 128 | .mccr0 = MCCR0_ADM, | ||
| 129 | .sclk_rate = 11981000, | ||
| 130 | }; | ||
| 131 | |||
| 126 | 132 | ||
| 127 | 133 | ||
| 128 | static void __init simpad_map_io(void) | 134 | static void __init simpad_map_io(void) |
| @@ -157,6 +163,7 @@ static void __init simpad_map_io(void) | |||
| 157 | 163 | ||
| 158 | sa11x0_set_flash_data(&simpad_flash_data, simpad_flash_resources, | 164 | sa11x0_set_flash_data(&simpad_flash_data, simpad_flash_resources, |
| 159 | ARRAY_SIZE(simpad_flash_resources)); | 165 | ARRAY_SIZE(simpad_flash_resources)); |
| 166 | sa11x0_set_mcp_data(&simpad_mcp_data); | ||
| 160 | } | 167 | } |
| 161 | 168 | ||
| 162 | static void simpad_power_off(void) | 169 | static void simpad_power_off(void) |
diff --git a/arch/arm26/kernel/signal.c b/arch/arm26/kernel/signal.c index 356d9809cc0b..ce2055bdc9ee 100644 --- a/arch/arm26/kernel/signal.c +++ b/arch/arm26/kernel/signal.c | |||
| @@ -454,14 +454,13 @@ handle_signal(unsigned long sig, siginfo_t *info, sigset_t *oldset, | |||
| 454 | if (ka->sa.sa_flags & SA_ONESHOT) | 454 | if (ka->sa.sa_flags & SA_ONESHOT) |
| 455 | ka->sa.sa_handler = SIG_DFL; | 455 | ka->sa.sa_handler = SIG_DFL; |
| 456 | 456 | ||
| 457 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 457 | spin_lock_irq(&tsk->sighand->siglock); |
| 458 | spin_lock_irq(&tsk->sighand->siglock); | 458 | sigorsets(&tsk->blocked, &tsk->blocked, |
| 459 | sigorsets(&tsk->blocked, &tsk->blocked, | 459 | &ka->sa.sa_mask); |
| 460 | &ka->sa.sa_mask); | 460 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 461 | sigaddset(&tsk->blocked, sig); | 461 | sigaddset(&tsk->blocked, sig); |
| 462 | recalc_sigpending(); | 462 | recalc_sigpending(); |
| 463 | spin_unlock_irq(&tsk->sighand->siglock); | 463 | spin_unlock_irq(&tsk->sighand->siglock); |
| 464 | } | ||
| 465 | return; | 464 | return; |
| 466 | } | 465 | } |
| 467 | 466 | ||
diff --git a/arch/cris/arch-v10/kernel/signal.c b/arch/cris/arch-v10/kernel/signal.c index 85e0032e664f..693771961f85 100644 --- a/arch/cris/arch-v10/kernel/signal.c +++ b/arch/cris/arch-v10/kernel/signal.c | |||
| @@ -517,13 +517,12 @@ handle_signal(int canrestart, unsigned long sig, | |||
| 517 | if (ka->sa.sa_flags & SA_ONESHOT) | 517 | if (ka->sa.sa_flags & SA_ONESHOT) |
| 518 | ka->sa.sa_handler = SIG_DFL; | 518 | ka->sa.sa_handler = SIG_DFL; |
| 519 | 519 | ||
| 520 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 520 | spin_lock_irq(¤t->sighand->siglock); |
| 521 | spin_lock_irq(¤t->sighand->siglock); | 521 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 522 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 522 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 523 | sigaddset(¤t->blocked,sig); | 523 | sigaddset(¤t->blocked,sig); |
| 524 | recalc_sigpending(); | 524 | recalc_sigpending(); |
| 525 | spin_unlock_irq(¤t->sighand->siglock); | 525 | spin_unlock_irq(¤t->sighand->siglock); |
| 526 | } | ||
| 527 | } | 526 | } |
| 528 | 527 | ||
| 529 | /* | 528 | /* |
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c index fb4c79d5b76b..0a3614dab887 100644 --- a/arch/cris/arch-v32/kernel/signal.c +++ b/arch/cris/arch-v32/kernel/signal.c | |||
| @@ -568,13 +568,12 @@ handle_signal(int canrestart, unsigned long sig, | |||
| 568 | if (ka->sa.sa_flags & SA_ONESHOT) | 568 | if (ka->sa.sa_flags & SA_ONESHOT) |
| 569 | ka->sa.sa_handler = SIG_DFL; | 569 | ka->sa.sa_handler = SIG_DFL; |
| 570 | 570 | ||
| 571 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 571 | spin_lock_irq(¤t->sighand->siglock); |
| 572 | spin_lock_irq(¤t->sighand->siglock); | 572 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 573 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 573 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 574 | sigaddset(¤t->blocked,sig); | 574 | sigaddset(¤t->blocked,sig); |
| 575 | recalc_sigpending(); | 575 | recalc_sigpending(); |
| 576 | spin_unlock_irq(¤t->sighand->siglock); | 576 | spin_unlock_irq(¤t->sighand->siglock); |
| 577 | } | ||
| 578 | } | 577 | } |
| 579 | 578 | ||
| 580 | /* | 579 | /* |
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 36a2dffc8ebd..d4ccc0728dfe 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
| @@ -506,13 +506,12 @@ static void handle_signal(unsigned long sig, siginfo_t *info, | |||
| 506 | else | 506 | else |
| 507 | setup_frame(sig, ka, oldset, regs); | 507 | setup_frame(sig, ka, oldset, regs); |
| 508 | 508 | ||
| 509 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 509 | spin_lock_irq(¤t->sighand->siglock); |
| 510 | spin_lock_irq(¤t->sighand->siglock); | 510 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); |
| 511 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); | 511 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 512 | sigaddset(¤t->blocked, sig); | 512 | sigaddset(¤t->blocked, sig); |
| 513 | recalc_sigpending(); | 513 | recalc_sigpending(); |
| 514 | spin_unlock_irq(¤t->sighand->siglock); | 514 | spin_unlock_irq(¤t->sighand->siglock); |
| 515 | } | ||
| 516 | } /* end handle_signal() */ | 515 | } /* end handle_signal() */ |
| 517 | 516 | ||
| 518 | /*****************************************************************************/ | 517 | /*****************************************************************************/ |
diff --git a/arch/h8300/kernel/signal.c b/arch/h8300/kernel/signal.c index 5aab87eae1f9..f13d5e82d4b9 100644 --- a/arch/h8300/kernel/signal.c +++ b/arch/h8300/kernel/signal.c | |||
| @@ -488,13 +488,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 488 | else | 488 | else |
| 489 | setup_frame(sig, ka, oldset, regs); | 489 | setup_frame(sig, ka, oldset, regs); |
| 490 | 490 | ||
| 491 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 491 | spin_lock_irq(¤t->sighand->siglock); |
| 492 | spin_lock_irq(¤t->sighand->siglock); | 492 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 493 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 493 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 494 | sigaddset(¤t->blocked,sig); | 494 | sigaddset(¤t->blocked,sig); |
| 495 | recalc_sigpending(); | 495 | recalc_sigpending(); |
| 496 | spin_unlock_irq(¤t->sighand->siglock); | 496 | spin_unlock_irq(¤t->sighand->siglock); |
| 497 | } | ||
| 498 | } | 497 | } |
| 499 | 498 | ||
| 500 | /* | 499 | /* |
diff --git a/arch/i386/kernel/signal.c b/arch/i386/kernel/signal.c index 89ef7adc63a4..140e340569c6 100644 --- a/arch/i386/kernel/signal.c +++ b/arch/i386/kernel/signal.c | |||
| @@ -577,10 +577,11 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 577 | else | 577 | else |
| 578 | ret = setup_frame(sig, ka, oldset, regs); | 578 | ret = setup_frame(sig, ka, oldset, regs); |
| 579 | 579 | ||
| 580 | if (ret && !(ka->sa.sa_flags & SA_NODEFER)) { | 580 | if (ret) { |
| 581 | spin_lock_irq(¤t->sighand->siglock); | 581 | spin_lock_irq(¤t->sighand->siglock); |
| 582 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 582 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 583 | sigaddset(¤t->blocked,sig); | 583 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 584 | sigaddset(¤t->blocked,sig); | ||
| 584 | recalc_sigpending(); | 585 | recalc_sigpending(); |
| 585 | spin_unlock_irq(¤t->sighand->siglock); | 586 | spin_unlock_irq(¤t->sighand->siglock); |
| 586 | } | 587 | } |
diff --git a/arch/ia64/kernel/signal.c b/arch/ia64/kernel/signal.c index b8a0a7d257a9..774f34b675cf 100644 --- a/arch/ia64/kernel/signal.c +++ b/arch/ia64/kernel/signal.c | |||
| @@ -467,15 +467,12 @@ handle_signal (unsigned long sig, struct k_sigaction *ka, siginfo_t *info, sigse | |||
| 467 | if (!setup_frame(sig, ka, info, oldset, scr)) | 467 | if (!setup_frame(sig, ka, info, oldset, scr)) |
| 468 | return 0; | 468 | return 0; |
| 469 | 469 | ||
| 470 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 470 | spin_lock_irq(¤t->sighand->siglock); |
| 471 | spin_lock_irq(¤t->sighand->siglock); | 471 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); |
| 472 | { | 472 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 473 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); | 473 | sigaddset(¤t->blocked, sig); |
| 474 | sigaddset(¤t->blocked, sig); | 474 | recalc_sigpending(); |
| 475 | recalc_sigpending(); | 475 | spin_unlock_irq(¤t->sighand->siglock); |
| 476 | } | ||
| 477 | spin_unlock_irq(¤t->sighand->siglock); | ||
| 478 | } | ||
| 479 | return 1; | 476 | return 1; |
| 480 | } | 477 | } |
| 481 | 478 | ||
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 54d9ed444e4a..f9472c50ab42 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
| @@ -380,6 +380,7 @@ void pcibios_bus_to_resource(struct pci_dev *dev, | |||
| 380 | res->start = region->start + offset; | 380 | res->start = region->start + offset; |
| 381 | res->end = region->end + offset; | 381 | res->end = region->end + offset; |
| 382 | } | 382 | } |
| 383 | EXPORT_SYMBOL(pcibios_bus_to_resource); | ||
| 383 | 384 | ||
| 384 | static int __devinit is_valid_resource(struct pci_dev *dev, int idx) | 385 | static int __devinit is_valid_resource(struct pci_dev *dev, int idx) |
| 385 | { | 386 | { |
diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c index 5aef7e406ef5..71763f7a1d19 100644 --- a/arch/m32r/kernel/signal.c +++ b/arch/m32r/kernel/signal.c | |||
| @@ -341,13 +341,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 341 | /* Set up the stack frame */ | 341 | /* Set up the stack frame */ |
| 342 | setup_rt_frame(sig, ka, info, oldset, regs); | 342 | setup_rt_frame(sig, ka, info, oldset, regs); |
| 343 | 343 | ||
| 344 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 344 | spin_lock_irq(¤t->sighand->siglock); |
| 345 | spin_lock_irq(¤t->sighand->siglock); | 345 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 346 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 346 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 347 | sigaddset(¤t->blocked,sig); | 347 | sigaddset(¤t->blocked,sig); |
| 348 | recalc_sigpending(); | 348 | recalc_sigpending(); |
| 349 | spin_unlock_irq(¤t->sighand->siglock); | 349 | spin_unlock_irq(¤t->sighand->siglock); |
| 350 | } | ||
| 351 | } | 350 | } |
| 352 | 351 | ||
| 353 | /* | 352 | /* |
diff --git a/arch/m68knommu/kernel/signal.c b/arch/m68knommu/kernel/signal.c index 30dceb59a462..43a2726c0d0a 100644 --- a/arch/m68knommu/kernel/signal.c +++ b/arch/m68knommu/kernel/signal.c | |||
| @@ -732,13 +732,12 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 732 | if (ka->sa.sa_flags & SA_ONESHOT) | 732 | if (ka->sa.sa_flags & SA_ONESHOT) |
| 733 | ka->sa.sa_handler = SIG_DFL; | 733 | ka->sa.sa_handler = SIG_DFL; |
| 734 | 734 | ||
| 735 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 735 | spin_lock_irq(¤t->sighand->siglock); |
| 736 | spin_lock_irq(¤t->sighand->siglock); | 736 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 737 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 737 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 738 | sigaddset(¤t->blocked,sig); | 738 | sigaddset(¤t->blocked,sig); |
| 739 | recalc_sigpending(); | 739 | recalc_sigpending(); |
| 740 | spin_unlock_irq(¤t->sighand->siglock); | 740 | spin_unlock_irq(¤t->sighand->siglock); |
| 741 | } | ||
| 742 | } | 741 | } |
| 743 | 742 | ||
| 744 | /* | 743 | /* |
diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c index 40244782a8e5..4c114ae21793 100644 --- a/arch/mips/kernel/irixsig.c +++ b/arch/mips/kernel/irixsig.c | |||
| @@ -155,13 +155,12 @@ static inline void handle_signal(unsigned long sig, siginfo_t *info, | |||
| 155 | else | 155 | else |
| 156 | setup_irix_frame(ka, regs, sig, oldset); | 156 | setup_irix_frame(ka, regs, sig, oldset); |
| 157 | 157 | ||
| 158 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 158 | spin_lock_irq(¤t->sighand->siglock); |
| 159 | spin_lock_irq(¤t->sighand->siglock); | 159 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 160 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 160 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 161 | sigaddset(¤t->blocked,sig); | 161 | sigaddset(¤t->blocked,sig); |
| 162 | recalc_sigpending(); | 162 | recalc_sigpending(); |
| 163 | spin_unlock_irq(¤t->sighand->siglock); | 163 | spin_unlock_irq(¤t->sighand->siglock); |
| 164 | } | ||
| 165 | } | 164 | } |
| 166 | 165 | ||
| 167 | asmlinkage int do_irix_signal(sigset_t *oldset, struct pt_regs *regs) | 166 | asmlinkage int do_irix_signal(sigset_t *oldset, struct pt_regs *regs) |
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index 65ee15396ffd..0209c1dd1429 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c | |||
| @@ -425,13 +425,12 @@ static inline void handle_signal(unsigned long sig, siginfo_t *info, | |||
| 425 | setup_frame(ka, regs, sig, oldset); | 425 | setup_frame(ka, regs, sig, oldset); |
| 426 | #endif | 426 | #endif |
| 427 | 427 | ||
| 428 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 428 | spin_lock_irq(¤t->sighand->siglock); |
| 429 | spin_lock_irq(¤t->sighand->siglock); | 429 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 430 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 430 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 431 | sigaddset(¤t->blocked,sig); | 431 | sigaddset(¤t->blocked,sig); |
| 432 | recalc_sigpending(); | 432 | recalc_sigpending(); |
| 433 | spin_unlock_irq(¤t->sighand->siglock); | 433 | spin_unlock_irq(¤t->sighand->siglock); |
| 434 | } | ||
| 435 | } | 434 | } |
| 436 | 435 | ||
| 437 | extern int do_signal32(sigset_t *oldset, struct pt_regs *regs); | 436 | extern int do_signal32(sigset_t *oldset, struct pt_regs *regs); |
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c index c1a69cf232f9..f6875f023a29 100644 --- a/arch/mips/kernel/signal32.c +++ b/arch/mips/kernel/signal32.c | |||
| @@ -751,13 +751,12 @@ static inline void handle_signal(unsigned long sig, siginfo_t *info, | |||
| 751 | else | 751 | else |
| 752 | setup_frame(ka, regs, sig, oldset); | 752 | setup_frame(ka, regs, sig, oldset); |
| 753 | 753 | ||
| 754 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 754 | spin_lock_irq(¤t->sighand->siglock); |
| 755 | spin_lock_irq(¤t->sighand->siglock); | 755 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 756 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 756 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 757 | sigaddset(¤t->blocked,sig); | 757 | sigaddset(¤t->blocked,sig); |
| 758 | recalc_sigpending(); | 758 | recalc_sigpending(); |
| 759 | spin_unlock_irq(¤t->sighand->siglock); | 759 | spin_unlock_irq(¤t->sighand->siglock); |
| 760 | } | ||
| 761 | } | 760 | } |
| 762 | 761 | ||
| 763 | int do_signal32(sigset_t *oldset, struct pt_regs *regs) | 762 | int do_signal32(sigset_t *oldset, struct pt_regs *regs) |
diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c index 9421bb98ea63..55d71c15e1f7 100644 --- a/arch/parisc/kernel/signal.c +++ b/arch/parisc/kernel/signal.c | |||
| @@ -517,13 +517,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 517 | if (!setup_rt_frame(sig, ka, info, oldset, regs, in_syscall)) | 517 | if (!setup_rt_frame(sig, ka, info, oldset, regs, in_syscall)) |
| 518 | return 0; | 518 | return 0; |
| 519 | 519 | ||
| 520 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 520 | spin_lock_irq(¤t->sighand->siglock); |
| 521 | spin_lock_irq(¤t->sighand->siglock); | 521 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 522 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 522 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 523 | sigaddset(¤t->blocked,sig); | 523 | sigaddset(¤t->blocked,sig); |
| 524 | recalc_sigpending(); | 524 | recalc_sigpending(); |
| 525 | spin_unlock_irq(¤t->sighand->siglock); | 525 | spin_unlock_irq(¤t->sighand->siglock); |
| 526 | } | ||
| 527 | return 1; | 526 | return 1; |
| 528 | } | 527 | } |
| 529 | 528 | ||
diff --git a/arch/ppc/kernel/signal.c b/arch/ppc/kernel/signal.c index 8aaeb6f4e750..2244bf91e593 100644 --- a/arch/ppc/kernel/signal.c +++ b/arch/ppc/kernel/signal.c | |||
| @@ -759,13 +759,12 @@ int do_signal(sigset_t *oldset, struct pt_regs *regs) | |||
| 759 | else | 759 | else |
| 760 | handle_signal(signr, &ka, &info, oldset, regs, newsp); | 760 | handle_signal(signr, &ka, &info, oldset, regs, newsp); |
| 761 | 761 | ||
| 762 | if (!(ka.sa.sa_flags & SA_NODEFER)) { | 762 | spin_lock_irq(¤t->sighand->siglock); |
| 763 | spin_lock_irq(¤t->sighand->siglock); | 763 | sigorsets(¤t->blocked,¤t->blocked,&ka.sa.sa_mask); |
| 764 | sigorsets(¤t->blocked,¤t->blocked,&ka.sa.sa_mask); | 764 | if (!(ka.sa.sa_flags & SA_NODEFER)) |
| 765 | sigaddset(¤t->blocked, signr); | 765 | sigaddset(¤t->blocked, signr); |
| 766 | recalc_sigpending(); | 766 | recalc_sigpending(); |
| 767 | spin_unlock_irq(¤t->sighand->siglock); | 767 | spin_unlock_irq(¤t->sighand->siglock); |
| 768 | } | ||
| 769 | 768 | ||
| 770 | return 1; | 769 | return 1; |
| 771 | } | 770 | } |
diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c index 55a381af4e37..a3702cfe8f7c 100644 --- a/arch/ppc/syslib/m8xx_setup.c +++ b/arch/ppc/syslib/m8xx_setup.c | |||
| @@ -423,7 +423,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
| 423 | ppc_md.find_end_of_memory = m8xx_find_end_of_memory; | 423 | ppc_md.find_end_of_memory = m8xx_find_end_of_memory; |
| 424 | ppc_md.setup_io_mappings = m8xx_map_io; | 424 | ppc_md.setup_io_mappings = m8xx_map_io; |
| 425 | 425 | ||
| 426 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) | 426 | #if defined(CONFIG_BLK_DEV_MPC8xx_IDE) |
| 427 | m8xx_ide_init(); | 427 | m8xx_ide_init(); |
| 428 | #endif | 428 | #endif |
| 429 | } | 429 | } |
diff --git a/arch/ppc64/kernel/setup.c b/arch/ppc64/kernel/setup.c index 687e85595208..e9c24d2dbd91 100644 --- a/arch/ppc64/kernel/setup.c +++ b/arch/ppc64/kernel/setup.c | |||
| @@ -706,6 +706,8 @@ void machine_power_off(void) | |||
| 706 | local_irq_disable(); | 706 | local_irq_disable(); |
| 707 | while (1) ; | 707 | while (1) ; |
| 708 | } | 708 | } |
| 709 | /* Used by the G5 thermal driver */ | ||
| 710 | EXPORT_SYMBOL_GPL(machine_power_off); | ||
| 709 | 711 | ||
| 710 | void machine_halt(void) | 712 | void machine_halt(void) |
| 711 | { | 713 | { |
diff --git a/arch/ppc64/kernel/signal.c b/arch/ppc64/kernel/signal.c index bf782276984c..49a79a55c32d 100644 --- a/arch/ppc64/kernel/signal.c +++ b/arch/ppc64/kernel/signal.c | |||
| @@ -481,10 +481,11 @@ static int handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
| 481 | /* Set up Signal Frame */ | 481 | /* Set up Signal Frame */ |
| 482 | ret = setup_rt_frame(sig, ka, info, oldset, regs); | 482 | ret = setup_rt_frame(sig, ka, info, oldset, regs); |
| 483 | 483 | ||
| 484 | if (ret && !(ka->sa.sa_flags & SA_NODEFER)) { | 484 | if (ret) { |
| 485 | spin_lock_irq(¤t->sighand->siglock); | 485 | spin_lock_irq(¤t->sighand->siglock); |
| 486 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); | 486 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); |
| 487 | sigaddset(¤t->blocked,sig); | 487 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 488 | sigaddset(¤t->blocked,sig); | ||
| 488 | recalc_sigpending(); | 489 | recalc_sigpending(); |
| 489 | spin_unlock_irq(¤t->sighand->siglock); | 490 | spin_unlock_irq(¤t->sighand->siglock); |
| 490 | } | 491 | } |
diff --git a/arch/ppc64/kernel/signal32.c b/arch/ppc64/kernel/signal32.c index 3c2fa5c284c0..46f4d6cc7fc9 100644 --- a/arch/ppc64/kernel/signal32.c +++ b/arch/ppc64/kernel/signal32.c | |||
| @@ -976,11 +976,12 @@ int do_signal32(sigset_t *oldset, struct pt_regs *regs) | |||
| 976 | else | 976 | else |
| 977 | ret = handle_signal32(signr, &ka, &info, oldset, regs, newsp); | 977 | ret = handle_signal32(signr, &ka, &info, oldset, regs, newsp); |
| 978 | 978 | ||
| 979 | if (ret && !(ka.sa.sa_flags & SA_NODEFER)) { | 979 | if (ret) { |
| 980 | spin_lock_irq(¤t->sighand->siglock); | 980 | spin_lock_irq(¤t->sighand->siglock); |
| 981 | sigorsets(¤t->blocked, ¤t->blocked, | 981 | sigorsets(¤t->blocked, ¤t->blocked, |
| 982 | &ka.sa.sa_mask); | 982 | &ka.sa.sa_mask); |
| 983 | sigaddset(¤t->blocked, signr); | 983 | if (!(ka.sa.sa_flags & SA_NODEFER)) |
| 984 | sigaddset(¤t->blocked, signr); | ||
| 984 | recalc_sigpending(); | 985 | recalc_sigpending(); |
| 985 | spin_unlock_irq(¤t->sighand->siglock); | 986 | spin_unlock_irq(¤t->sighand->siglock); |
| 986 | } | 987 | } |
diff --git a/arch/s390/kernel/compat_signal.c b/arch/s390/kernel/compat_signal.c index d05d65ac9694..7358cdb8441f 100644 --- a/arch/s390/kernel/compat_signal.c +++ b/arch/s390/kernel/compat_signal.c | |||
| @@ -637,12 +637,11 @@ handle_signal32(unsigned long sig, struct k_sigaction *ka, | |||
| 637 | else | 637 | else |
| 638 | setup_frame32(sig, ka, oldset, regs); | 638 | setup_frame32(sig, ka, oldset, regs); |
| 639 | 639 | ||
| 640 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 640 | spin_lock_irq(¤t->sighand->siglock); |
| 641 | spin_lock_irq(¤t->sighand->siglock); | 641 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 642 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 642 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 643 | sigaddset(¤t->blocked,sig); | 643 | sigaddset(¤t->blocked,sig); |
| 644 | recalc_sigpending(); | 644 | recalc_sigpending(); |
| 645 | spin_unlock_irq(¤t->sighand->siglock); | 645 | spin_unlock_irq(¤t->sighand->siglock); |
| 646 | } | ||
| 647 | } | 646 | } |
| 648 | 647 | ||
diff --git a/arch/s390/kernel/signal.c b/arch/s390/kernel/signal.c index 610c1d03e975..6a3f5b7473a9 100644 --- a/arch/s390/kernel/signal.c +++ b/arch/s390/kernel/signal.c | |||
| @@ -429,13 +429,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
| 429 | else | 429 | else |
| 430 | setup_frame(sig, ka, oldset, regs); | 430 | setup_frame(sig, ka, oldset, regs); |
| 431 | 431 | ||
| 432 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 432 | spin_lock_irq(¤t->sighand->siglock); |
| 433 | spin_lock_irq(¤t->sighand->siglock); | 433 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 434 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 434 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 435 | sigaddset(¤t->blocked,sig); | 435 | sigaddset(¤t->blocked,sig); |
| 436 | recalc_sigpending(); | 436 | recalc_sigpending(); |
| 437 | spin_unlock_irq(¤t->sighand->siglock); | 437 | spin_unlock_irq(¤t->sighand->siglock); |
| 438 | } | ||
| 439 | } | 438 | } |
| 440 | 439 | ||
| 441 | /* | 440 | /* |
diff --git a/arch/sh/kernel/signal.c b/arch/sh/kernel/signal.c index 8022243f0178..b475c4d2405f 100644 --- a/arch/sh/kernel/signal.c +++ b/arch/sh/kernel/signal.c | |||
| @@ -546,13 +546,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 546 | if (ka->sa.sa_flags & SA_ONESHOT) | 546 | if (ka->sa.sa_flags & SA_ONESHOT) |
| 547 | ka->sa.sa_handler = SIG_DFL; | 547 | ka->sa.sa_handler = SIG_DFL; |
| 548 | 548 | ||
| 549 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 549 | spin_lock_irq(¤t->sighand->siglock); |
| 550 | spin_lock_irq(¤t->sighand->siglock); | 550 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 551 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 551 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 552 | sigaddset(¤t->blocked,sig); | 552 | sigaddset(¤t->blocked,sig); |
| 553 | recalc_sigpending(); | 553 | recalc_sigpending(); |
| 554 | spin_unlock_irq(¤t->sighand->siglock); | 554 | spin_unlock_irq(¤t->sighand->siglock); |
| 555 | } | ||
| 556 | } | 555 | } |
| 557 | 556 | ||
| 558 | /* | 557 | /* |
diff --git a/arch/sh64/kernel/signal.c b/arch/sh64/kernel/signal.c index c6a14a87c59b..3ea8929e483b 100644 --- a/arch/sh64/kernel/signal.c +++ b/arch/sh64/kernel/signal.c | |||
| @@ -664,13 +664,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 664 | else | 664 | else |
| 665 | setup_frame(sig, ka, oldset, regs); | 665 | setup_frame(sig, ka, oldset, regs); |
| 666 | 666 | ||
| 667 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 667 | spin_lock_irq(¤t->sighand->siglock); |
| 668 | spin_lock_irq(¤t->sighand->siglock); | 668 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 669 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 669 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 670 | sigaddset(¤t->blocked,sig); | 670 | sigaddset(¤t->blocked,sig); |
| 671 | recalc_sigpending(); | 671 | recalc_sigpending(); |
| 672 | spin_unlock_irq(¤t->sighand->siglock); | 672 | spin_unlock_irq(¤t->sighand->siglock); |
| 673 | } | ||
| 674 | } | 673 | } |
| 675 | 674 | ||
| 676 | /* | 675 | /* |
diff --git a/arch/sparc/kernel/signal.c b/arch/sparc/kernel/signal.c index 011ff35057a5..5f34d7dc2b89 100644 --- a/arch/sparc/kernel/signal.c +++ b/arch/sparc/kernel/signal.c | |||
| @@ -1034,13 +1034,12 @@ handle_signal(unsigned long signr, struct k_sigaction *ka, | |||
| 1034 | else | 1034 | else |
| 1035 | setup_frame(&ka->sa, regs, signr, oldset, info); | 1035 | setup_frame(&ka->sa, regs, signr, oldset, info); |
| 1036 | } | 1036 | } |
| 1037 | if (!(ka->sa.sa_flags & SA_NOMASK)) { | 1037 | spin_lock_irq(¤t->sighand->siglock); |
| 1038 | spin_lock_irq(¤t->sighand->siglock); | 1038 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 1039 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 1039 | if (!(ka->sa.sa_flags & SA_NOMASK)) |
| 1040 | sigaddset(¤t->blocked, signr); | 1040 | sigaddset(¤t->blocked, signr); |
| 1041 | recalc_sigpending(); | 1041 | recalc_sigpending(); |
| 1042 | spin_unlock_irq(¤t->sighand->siglock); | 1042 | spin_unlock_irq(¤t->sighand->siglock); |
| 1043 | } | ||
| 1044 | } | 1043 | } |
| 1045 | 1044 | ||
| 1046 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, | 1045 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, |
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index bba140d98b1b..f21c993f8856 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
| @@ -540,6 +540,7 @@ void pcibios_bus_to_resource(struct pci_dev *pdev, struct resource *res, | |||
| 540 | 540 | ||
| 541 | pbm->parent->resource_adjust(pdev, res, root); | 541 | pbm->parent->resource_adjust(pdev, res, root); |
| 542 | } | 542 | } |
| 543 | EXPORT_SYMBOL(pcibios_bus_to_resource); | ||
| 543 | 544 | ||
| 544 | char * __init pcibios_setup(char *str) | 545 | char * __init pcibios_setup(char *str) |
| 545 | { | 546 | { |
diff --git a/arch/sparc64/kernel/signal.c b/arch/sparc64/kernel/signal.c index b27934671c35..60f5dfabb1e1 100644 --- a/arch/sparc64/kernel/signal.c +++ b/arch/sparc64/kernel/signal.c | |||
| @@ -574,13 +574,12 @@ static inline void handle_signal(unsigned long signr, struct k_sigaction *ka, | |||
| 574 | { | 574 | { |
| 575 | setup_rt_frame(ka, regs, signr, oldset, | 575 | setup_rt_frame(ka, regs, signr, oldset, |
| 576 | (ka->sa.sa_flags & SA_SIGINFO) ? info : NULL); | 576 | (ka->sa.sa_flags & SA_SIGINFO) ? info : NULL); |
| 577 | if (!(ka->sa.sa_flags & SA_NOMASK)) { | 577 | spin_lock_irq(¤t->sighand->siglock); |
| 578 | spin_lock_irq(¤t->sighand->siglock); | 578 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 579 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 579 | if (!(ka->sa.sa_flags & SA_NOMASK)) |
| 580 | sigaddset(¤t->blocked,signr); | 580 | sigaddset(¤t->blocked,signr); |
| 581 | recalc_sigpending(); | 581 | recalc_sigpending(); |
| 582 | spin_unlock_irq(¤t->sighand->siglock); | 582 | spin_unlock_irq(¤t->sighand->siglock); |
| 583 | } | ||
| 584 | } | 583 | } |
| 585 | 584 | ||
| 586 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, | 585 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, |
diff --git a/arch/sparc64/kernel/signal32.c b/arch/sparc64/kernel/signal32.c index f28428f4170e..b1ed23091fbb 100644 --- a/arch/sparc64/kernel/signal32.c +++ b/arch/sparc64/kernel/signal32.c | |||
| @@ -1325,13 +1325,12 @@ static inline void handle_signal32(unsigned long signr, struct k_sigaction *ka, | |||
| 1325 | else | 1325 | else |
| 1326 | setup_frame32(&ka->sa, regs, signr, oldset, info); | 1326 | setup_frame32(&ka->sa, regs, signr, oldset, info); |
| 1327 | } | 1327 | } |
| 1328 | if (!(ka->sa.sa_flags & SA_NOMASK)) { | 1328 | spin_lock_irq(¤t->sighand->siglock); |
| 1329 | spin_lock_irq(¤t->sighand->siglock); | 1329 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 1330 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 1330 | if (!(ka->sa.sa_flags & SA_NOMASK)) |
| 1331 | sigaddset(¤t->blocked,signr); | 1331 | sigaddset(¤t->blocked,signr); |
| 1332 | recalc_sigpending(); | 1332 | recalc_sigpending(); |
| 1333 | spin_unlock_irq(¤t->sighand->siglock); | 1333 | spin_unlock_irq(¤t->sighand->siglock); |
| 1334 | } | ||
| 1335 | } | 1334 | } |
| 1336 | 1335 | ||
| 1337 | static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs, | 1336 | static inline void syscall_restart32(unsigned long orig_i0, struct pt_regs *regs, |
diff --git a/arch/um/drivers/mmapper_kern.c b/arch/um/drivers/mmapper_kern.c index a37a5ac13c22..022f67bb6873 100644 --- a/arch/um/drivers/mmapper_kern.c +++ b/arch/um/drivers/mmapper_kern.c | |||
| @@ -9,19 +9,11 @@ | |||
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/types.h> | 12 | #include <linux/init.h> |
| 13 | #include <linux/kdev_t.h> | ||
| 14 | #include <linux/time.h> | ||
| 15 | #include <linux/devfs_fs_kernel.h> | ||
| 16 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| 17 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
| 18 | #include <linux/slab.h> | ||
| 19 | #include <linux/init.h> | ||
| 20 | #include <linux/smp_lock.h> | ||
| 21 | #include <linux/miscdevice.h> | 15 | #include <linux/miscdevice.h> |
| 22 | #include <asm/uaccess.h> | 16 | #include <asm/uaccess.h> |
| 23 | #include <asm/irq.h> | ||
| 24 | #include <asm/pgtable.h> | ||
| 25 | #include "mem_user.h" | 17 | #include "mem_user.h" |
| 26 | #include "user_util.h" | 18 | #include "user_util.h" |
| 27 | 19 | ||
| @@ -31,35 +23,22 @@ static unsigned long p_buf = 0; | |||
| 31 | static char *v_buf = NULL; | 23 | static char *v_buf = NULL; |
| 32 | 24 | ||
| 33 | static ssize_t | 25 | static ssize_t |
| 34 | mmapper_read(struct file *file, char *buf, size_t count, loff_t *ppos) | 26 | mmapper_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
| 35 | { | 27 | { |
| 36 | if(*ppos > mmapper_size) | 28 | return simple_read_from_buffer(buf, count, ppos, v_buf, mmapper_size); |
| 37 | return -EINVAL; | ||
| 38 | |||
| 39 | if(count + *ppos > mmapper_size) | ||
| 40 | count = count + *ppos - mmapper_size; | ||
| 41 | |||
| 42 | if(count < 0) | ||
| 43 | return -EINVAL; | ||
| 44 | |||
| 45 | copy_to_user(buf,&v_buf[*ppos],count); | ||
| 46 | |||
| 47 | return count; | ||
| 48 | } | 29 | } |
| 49 | 30 | ||
| 50 | static ssize_t | 31 | static ssize_t |
| 51 | mmapper_write(struct file *file, const char *buf, size_t count, loff_t *ppos) | 32 | mmapper_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) |
| 52 | { | 33 | { |
| 53 | if(*ppos > mmapper_size) | 34 | if (*ppos > mmapper_size) |
| 54 | return -EINVAL; | 35 | return -EINVAL; |
| 55 | 36 | ||
| 56 | if(count + *ppos > mmapper_size) | 37 | if (count > mmapper_size - *ppos) |
| 57 | count = count + *ppos - mmapper_size; | 38 | count = mmapper_size - *ppos; |
| 58 | |||
| 59 | if(count < 0) | ||
| 60 | return -EINVAL; | ||
| 61 | 39 | ||
| 62 | copy_from_user(&v_buf[*ppos],buf,count); | 40 | if (copy_from_user(&v_buf[*ppos], buf, count)) |
| 41 | return -EFAULT; | ||
| 63 | 42 | ||
| 64 | return count; | 43 | return count; |
| 65 | } | 44 | } |
| @@ -77,7 +56,6 @@ mmapper_mmap(struct file *file, struct vm_area_struct * vma) | |||
| 77 | int ret = -EINVAL; | 56 | int ret = -EINVAL; |
| 78 | int size; | 57 | int size; |
| 79 | 58 | ||
| 80 | lock_kernel(); | ||
| 81 | if (vma->vm_pgoff != 0) | 59 | if (vma->vm_pgoff != 0) |
| 82 | goto out; | 60 | goto out; |
| 83 | 61 | ||
| @@ -92,7 +70,6 @@ mmapper_mmap(struct file *file, struct vm_area_struct * vma) | |||
| 92 | goto out; | 70 | goto out; |
| 93 | ret = 0; | 71 | ret = 0; |
| 94 | out: | 72 | out: |
| 95 | unlock_kernel(); | ||
| 96 | return ret; | 73 | return ret; |
| 97 | } | 74 | } |
| 98 | 75 | ||
diff --git a/arch/um/kernel/signal_kern.c b/arch/um/kernel/signal_kern.c index 7807a3e8c426..03618bd13d55 100644 --- a/arch/um/kernel/signal_kern.c +++ b/arch/um/kernel/signal_kern.c | |||
| @@ -87,12 +87,12 @@ static int handle_signal(struct pt_regs *regs, unsigned long signr, | |||
| 87 | recalc_sigpending(); | 87 | recalc_sigpending(); |
| 88 | spin_unlock_irq(¤t->sighand->siglock); | 88 | spin_unlock_irq(¤t->sighand->siglock); |
| 89 | force_sigsegv(signr, current); | 89 | force_sigsegv(signr, current); |
| 90 | } | 90 | } else { |
| 91 | else if(!(ka->sa.sa_flags & SA_NODEFER)){ | ||
| 92 | spin_lock_irq(¤t->sighand->siglock); | 91 | spin_lock_irq(¤t->sighand->siglock); |
| 93 | sigorsets(¤t->blocked, ¤t->blocked, | 92 | sigorsets(¤t->blocked, ¤t->blocked, |
| 94 | &ka->sa.sa_mask); | 93 | &ka->sa.sa_mask); |
| 95 | sigaddset(¤t->blocked, signr); | 94 | if(!(ka->sa.sa_flags & SA_NODEFER)) |
| 95 | sigaddset(¤t->blocked, signr); | ||
| 96 | recalc_sigpending(); | 96 | recalc_sigpending(); |
| 97 | spin_unlock_irq(¤t->sighand->siglock); | 97 | spin_unlock_irq(¤t->sighand->siglock); |
| 98 | } | 98 | } |
diff --git a/arch/v850/kernel/signal.c b/arch/v850/kernel/signal.c index 37061e32e1a4..633e4e1b825f 100644 --- a/arch/v850/kernel/signal.c +++ b/arch/v850/kernel/signal.c | |||
| @@ -462,13 +462,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 462 | else | 462 | else |
| 463 | setup_frame(sig, ka, oldset, regs); | 463 | setup_frame(sig, ka, oldset, regs); |
| 464 | 464 | ||
| 465 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 465 | spin_lock_irq(¤t->sighand->siglock); |
| 466 | spin_lock_irq(¤t->sighand->siglock); | 466 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 467 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 467 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 468 | sigaddset(¤t->blocked,sig); | 468 | sigaddset(¤t->blocked,sig); |
| 469 | recalc_sigpending(); | 469 | recalc_sigpending(); |
| 470 | spin_unlock_irq(¤t->sighand->siglock); | 470 | spin_unlock_irq(¤t->sighand->siglock); |
| 471 | } | ||
| 472 | } | 471 | } |
| 473 | 472 | ||
| 474 | /* | 473 | /* |
diff --git a/arch/x86_64/defconfig b/arch/x86_64/defconfig index 776f3c866b70..b97a61e1c71c 100644 --- a/arch/x86_64/defconfig +++ b/arch/x86_64/defconfig | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # | 1 | # |
| 2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
| 3 | # Linux kernel version: 2.6.13-rc3 | 3 | # Linux kernel version: 2.6.13-rc6-git3 |
| 4 | # Fri Jul 22 16:47:31 2005 | 4 | # Fri Aug 12 16:40:34 2005 |
| 5 | # | 5 | # |
| 6 | CONFIG_X86_64=y | 6 | CONFIG_X86_64=y |
| 7 | CONFIG_64BIT=y | 7 | CONFIG_64BIT=y |
| @@ -284,10 +284,6 @@ CONFIG_IPV6=y | |||
| 284 | # Network testing | 284 | # Network testing |
| 285 | # | 285 | # |
| 286 | # CONFIG_NET_PKTGEN is not set | 286 | # CONFIG_NET_PKTGEN is not set |
| 287 | CONFIG_NETPOLL=y | ||
| 288 | # CONFIG_NETPOLL_RX is not set | ||
| 289 | # CONFIG_NETPOLL_TRAP is not set | ||
| 290 | CONFIG_NET_POLL_CONTROLLER=y | ||
| 291 | # CONFIG_HAMRADIO is not set | 287 | # CONFIG_HAMRADIO is not set |
| 292 | # CONFIG_IRDA is not set | 288 | # CONFIG_IRDA is not set |
| 293 | # CONFIG_BT is not set | 289 | # CONFIG_BT is not set |
| @@ -463,6 +459,7 @@ CONFIG_AIC79XX_DEBUG_MASK=0 | |||
| 463 | # CONFIG_MEGARAID_NEWGEN is not set | 459 | # CONFIG_MEGARAID_NEWGEN is not set |
| 464 | # CONFIG_MEGARAID_LEGACY is not set | 460 | # CONFIG_MEGARAID_LEGACY is not set |
| 465 | CONFIG_SCSI_SATA=y | 461 | CONFIG_SCSI_SATA=y |
| 462 | # CONFIG_SCSI_SATA_AHCI is not set | ||
| 466 | # CONFIG_SCSI_SATA_SVW is not set | 463 | # CONFIG_SCSI_SATA_SVW is not set |
| 467 | CONFIG_SCSI_ATA_PIIX=y | 464 | CONFIG_SCSI_ATA_PIIX=y |
| 468 | # CONFIG_SCSI_SATA_NV is not set | 465 | # CONFIG_SCSI_SATA_NV is not set |
| @@ -492,6 +489,7 @@ CONFIG_SCSI_QLA2XXX=y | |||
| 492 | # CONFIG_SCSI_QLA2300 is not set | 489 | # CONFIG_SCSI_QLA2300 is not set |
| 493 | # CONFIG_SCSI_QLA2322 is not set | 490 | # CONFIG_SCSI_QLA2322 is not set |
| 494 | # CONFIG_SCSI_QLA6312 is not set | 491 | # CONFIG_SCSI_QLA6312 is not set |
| 492 | # CONFIG_SCSI_QLA24XX is not set | ||
| 495 | # CONFIG_SCSI_LPFC is not set | 493 | # CONFIG_SCSI_LPFC is not set |
| 496 | # CONFIG_SCSI_DC395x is not set | 494 | # CONFIG_SCSI_DC395x is not set |
| 497 | # CONFIG_SCSI_DC390T is not set | 495 | # CONFIG_SCSI_DC390T is not set |
| @@ -512,9 +510,11 @@ CONFIG_BLK_DEV_DM=y | |||
| 512 | # | 510 | # |
| 513 | # Fusion MPT device support | 511 | # Fusion MPT device support |
| 514 | # | 512 | # |
| 515 | # CONFIG_FUSION is not set | 513 | CONFIG_FUSION=y |
| 516 | # CONFIG_FUSION_SPI is not set | 514 | CONFIG_FUSION_SPI=y |
| 517 | # CONFIG_FUSION_FC is not set | 515 | # CONFIG_FUSION_FC is not set |
| 516 | CONFIG_FUSION_MAX_SGE=128 | ||
| 517 | # CONFIG_FUSION_CTL is not set | ||
| 518 | 518 | ||
| 519 | # | 519 | # |
| 520 | # IEEE 1394 (FireWire) support | 520 | # IEEE 1394 (FireWire) support |
| @@ -585,6 +585,7 @@ CONFIG_8139TOO=y | |||
| 585 | # CONFIG_ACENIC is not set | 585 | # CONFIG_ACENIC is not set |
| 586 | # CONFIG_DL2K is not set | 586 | # CONFIG_DL2K is not set |
| 587 | CONFIG_E1000=y | 587 | CONFIG_E1000=y |
| 588 | # CONFIG_E1000_NAPI is not set | ||
| 588 | # CONFIG_NS83820 is not set | 589 | # CONFIG_NS83820 is not set |
| 589 | # CONFIG_HAMACHI is not set | 590 | # CONFIG_HAMACHI is not set |
| 590 | # CONFIG_YELLOWFIN is not set | 591 | # CONFIG_YELLOWFIN is not set |
| @@ -624,6 +625,10 @@ CONFIG_S2IO=m | |||
| 624 | # CONFIG_NET_FC is not set | 625 | # CONFIG_NET_FC is not set |
| 625 | # CONFIG_SHAPER is not set | 626 | # CONFIG_SHAPER is not set |
| 626 | CONFIG_NETCONSOLE=y | 627 | CONFIG_NETCONSOLE=y |
| 628 | CONFIG_NETPOLL=y | ||
| 629 | # CONFIG_NETPOLL_RX is not set | ||
| 630 | # CONFIG_NETPOLL_TRAP is not set | ||
| 631 | CONFIG_NET_POLL_CONTROLLER=y | ||
| 627 | 632 | ||
| 628 | # | 633 | # |
| 629 | # ISDN subsystem | 634 | # ISDN subsystem |
diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c index 6ded3a50dfe6..b548dea4e5b9 100644 --- a/arch/x86_64/kernel/e820.c +++ b/arch/x86_64/kernel/e820.c | |||
| @@ -185,6 +185,40 @@ unsigned long __init e820_end_of_ram(void) | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | /* | 187 | /* |
| 188 | * Compute how much memory is missing in a range. | ||
| 189 | * Unlike the other functions in this file the arguments are in page numbers. | ||
| 190 | */ | ||
| 191 | unsigned long __init | ||
| 192 | e820_hole_size(unsigned long start_pfn, unsigned long end_pfn) | ||
| 193 | { | ||
| 194 | unsigned long ram = 0; | ||
| 195 | unsigned long start = start_pfn << PAGE_SHIFT; | ||
| 196 | unsigned long end = end_pfn << PAGE_SHIFT; | ||
| 197 | int i; | ||
| 198 | for (i = 0; i < e820.nr_map; i++) { | ||
| 199 | struct e820entry *ei = &e820.map[i]; | ||
| 200 | unsigned long last, addr; | ||
| 201 | |||
| 202 | if (ei->type != E820_RAM || | ||
| 203 | ei->addr+ei->size <= start || | ||
| 204 | ei->addr >= end) | ||
| 205 | continue; | ||
| 206 | |||
| 207 | addr = round_up(ei->addr, PAGE_SIZE); | ||
| 208 | if (addr < start) | ||
| 209 | addr = start; | ||
| 210 | |||
| 211 | last = round_down(ei->addr + ei->size, PAGE_SIZE); | ||
| 212 | if (last >= end) | ||
| 213 | last = end; | ||
| 214 | |||
| 215 | if (last > addr) | ||
| 216 | ram += last - addr; | ||
| 217 | } | ||
| 218 | return ((end - start) - ram) >> PAGE_SHIFT; | ||
| 219 | } | ||
| 220 | |||
| 221 | /* | ||
| 188 | * Mark e820 reserved areas as busy for the resource manager. | 222 | * Mark e820 reserved areas as busy for the resource manager. |
| 189 | */ | 223 | */ |
| 190 | void __init e820_reserve_resources(void) | 224 | void __init e820_reserve_resources(void) |
diff --git a/arch/x86_64/kernel/signal.c b/arch/x86_64/kernel/signal.c index 98590a989f3d..d642fbf3da29 100644 --- a/arch/x86_64/kernel/signal.c +++ b/arch/x86_64/kernel/signal.c | |||
| @@ -394,10 +394,11 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 394 | #endif | 394 | #endif |
| 395 | ret = setup_rt_frame(sig, ka, info, oldset, regs); | 395 | ret = setup_rt_frame(sig, ka, info, oldset, regs); |
| 396 | 396 | ||
| 397 | if (ret && !(ka->sa.sa_flags & SA_NODEFER)) { | 397 | if (ret) { |
| 398 | spin_lock_irq(¤t->sighand->siglock); | 398 | spin_lock_irq(¤t->sighand->siglock); |
| 399 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 399 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
| 400 | sigaddset(¤t->blocked,sig); | 400 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
| 401 | sigaddset(¤t->blocked,sig); | ||
| 401 | recalc_sigpending(); | 402 | recalc_sigpending(); |
| 402 | spin_unlock_irq(¤t->sighand->siglock); | 403 | spin_unlock_irq(¤t->sighand->siglock); |
| 403 | } | 404 | } |
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 72e4b364ed73..aa4a5189ecee 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
| @@ -322,18 +322,26 @@ void zap_low_mappings(void) | |||
| 322 | void __init paging_init(void) | 322 | void __init paging_init(void) |
| 323 | { | 323 | { |
| 324 | { | 324 | { |
| 325 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 325 | unsigned long zones_size[MAX_NR_ZONES]; |
| 326 | unsigned long holes[MAX_NR_ZONES]; | ||
| 326 | unsigned int max_dma; | 327 | unsigned int max_dma; |
| 327 | 328 | ||
| 329 | memset(zones_size, 0, sizeof(zones_size)); | ||
| 330 | memset(holes, 0, sizeof(holes)); | ||
| 331 | |||
| 328 | max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; | 332 | max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; |
| 329 | 333 | ||
| 330 | if (end_pfn < max_dma) | 334 | if (end_pfn < max_dma) { |
| 331 | zones_size[ZONE_DMA] = end_pfn; | 335 | zones_size[ZONE_DMA] = end_pfn; |
| 332 | else { | 336 | holes[ZONE_DMA] = e820_hole_size(0, end_pfn); |
| 337 | } else { | ||
| 333 | zones_size[ZONE_DMA] = max_dma; | 338 | zones_size[ZONE_DMA] = max_dma; |
| 339 | holes[ZONE_DMA] = e820_hole_size(0, max_dma); | ||
| 334 | zones_size[ZONE_NORMAL] = end_pfn - max_dma; | 340 | zones_size[ZONE_NORMAL] = end_pfn - max_dma; |
| 341 | holes[ZONE_NORMAL] = e820_hole_size(max_dma, end_pfn); | ||
| 335 | } | 342 | } |
| 336 | free_area_init(zones_size); | 343 | free_area_init_node(0, NODE_DATA(0), zones_size, |
| 344 | __pa(PAGE_OFFSET) >> PAGE_SHIFT, holes); | ||
| 337 | } | 345 | } |
| 338 | return; | 346 | return; |
| 339 | } | 347 | } |
diff --git a/arch/x86_64/mm/numa.c b/arch/x86_64/mm/numa.c index 70cb2904a90f..6a156f5692ae 100644 --- a/arch/x86_64/mm/numa.c +++ b/arch/x86_64/mm/numa.c | |||
| @@ -126,9 +126,11 @@ void __init setup_node_zones(int nodeid) | |||
| 126 | { | 126 | { |
| 127 | unsigned long start_pfn, end_pfn; | 127 | unsigned long start_pfn, end_pfn; |
| 128 | unsigned long zones[MAX_NR_ZONES]; | 128 | unsigned long zones[MAX_NR_ZONES]; |
| 129 | unsigned long holes[MAX_NR_ZONES]; | ||
| 129 | unsigned long dma_end_pfn; | 130 | unsigned long dma_end_pfn; |
| 130 | 131 | ||
| 131 | memset(zones, 0, sizeof(unsigned long) * MAX_NR_ZONES); | 132 | memset(zones, 0, sizeof(unsigned long) * MAX_NR_ZONES); |
| 133 | memset(holes, 0, sizeof(unsigned long) * MAX_NR_ZONES); | ||
| 132 | 134 | ||
| 133 | start_pfn = node_start_pfn(nodeid); | 135 | start_pfn = node_start_pfn(nodeid); |
| 134 | end_pfn = node_end_pfn(nodeid); | 136 | end_pfn = node_end_pfn(nodeid); |
| @@ -139,13 +141,17 @@ void __init setup_node_zones(int nodeid) | |||
| 139 | dma_end_pfn = __pa(MAX_DMA_ADDRESS) >> PAGE_SHIFT; | 141 | dma_end_pfn = __pa(MAX_DMA_ADDRESS) >> PAGE_SHIFT; |
| 140 | if (start_pfn < dma_end_pfn) { | 142 | if (start_pfn < dma_end_pfn) { |
| 141 | zones[ZONE_DMA] = dma_end_pfn - start_pfn; | 143 | zones[ZONE_DMA] = dma_end_pfn - start_pfn; |
| 144 | holes[ZONE_DMA] = e820_hole_size(start_pfn, dma_end_pfn); | ||
| 142 | zones[ZONE_NORMAL] = end_pfn - dma_end_pfn; | 145 | zones[ZONE_NORMAL] = end_pfn - dma_end_pfn; |
| 146 | holes[ZONE_NORMAL] = e820_hole_size(dma_end_pfn, end_pfn); | ||
| 147 | |||
| 143 | } else { | 148 | } else { |
| 144 | zones[ZONE_NORMAL] = end_pfn - start_pfn; | 149 | zones[ZONE_NORMAL] = end_pfn - start_pfn; |
| 150 | holes[ZONE_NORMAL] = e820_hole_size(start_pfn, end_pfn); | ||
| 145 | } | 151 | } |
| 146 | 152 | ||
| 147 | free_area_init_node(nodeid, NODE_DATA(nodeid), zones, | 153 | free_area_init_node(nodeid, NODE_DATA(nodeid), zones, |
| 148 | start_pfn, NULL); | 154 | start_pfn, holes); |
| 149 | } | 155 | } |
| 150 | 156 | ||
| 151 | void __init numa_init_array(void) | 157 | void __init numa_init_array(void) |
diff --git a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c index df6e1e17b096..dc42cede9394 100644 --- a/arch/xtensa/kernel/signal.c +++ b/arch/xtensa/kernel/signal.c | |||
| @@ -702,12 +702,11 @@ int do_signal(struct pt_regs *regs, sigset_t *oldset) | |||
| 702 | if (ka.sa.sa_flags & SA_ONESHOT) | 702 | if (ka.sa.sa_flags & SA_ONESHOT) |
| 703 | ka.sa.sa_handler = SIG_DFL; | 703 | ka.sa.sa_handler = SIG_DFL; |
| 704 | 704 | ||
| 705 | if (!(ka.sa.sa_flags & SA_NODEFER)) { | 705 | spin_lock_irq(¤t->sighand->siglock); |
| 706 | spin_lock_irq(¤t->sighand->siglock); | 706 | sigorsets(¤t->blocked, ¤t->blocked, &ka.sa.sa_mask); |
| 707 | sigorsets(¤t->blocked, ¤t->blocked, &ka.sa.sa_mask); | 707 | if (!(ka.sa.sa_flags & SA_NODEFER)) |
| 708 | sigaddset(¤t->blocked, signr); | 708 | sigaddset(¤t->blocked, signr); |
| 709 | recalc_sigpending(); | 709 | recalc_sigpending(); |
| 710 | spin_unlock_irq(¤t->sighand->siglock); | 710 | spin_unlock_irq(¤t->sighand->siglock); |
| 711 | } | ||
| 712 | return 1; | 711 | return 1; |
| 713 | } | 712 | } |
