diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:20 -0500 |
commit | c2e08e7ce5ab25a781197a71c5241742e8c9fdfe (patch) | |
tree | 70cce0b2f4cb82b1670e987169a7790e8467cf41 /arch | |
parent | 28190145543260c155216b9bd3adf57bee50f8b2 (diff) | |
parent | b3a0aa3ae1c0889ffe8abb2e326d5c74c7c9c097 (diff) |
Merge branch 'unicore32' of git://github.com/gxt/linux
* 'unicore32' of git://github.com/gxt/linux:
rtc-puv3: solve section mismatch in rtc-puv3.c
rtc-puv3: using module_platform_driver()
i2c-puv3: using module_platform_driver()
rtc-puv3: irq: remove IRQF_DISABLED
unicore32: Remove IRQF_DISABLED
unicore32: Use set_current_blocked()
unicore32: add ioremap_nocache definition
unicore32: delete specified xlate_dev_mem_ptr
of: add include asm/setup.h in drivers/of/fdt.c
unicore32: standardize /proc/iomem "Kernel code" name
Diffstat (limited to 'arch')
-rw-r--r-- | arch/unicore32/include/asm/io.h | 8 | ||||
-rw-r--r-- | arch/unicore32/kernel/puv3-nb0916.c | 4 | ||||
-rw-r--r-- | arch/unicore32/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/unicore32/kernel/signal.c | 15 | ||||
-rw-r--r-- | arch/unicore32/kernel/time.c | 2 |
5 files changed, 10 insertions, 21 deletions
diff --git a/arch/unicore32/include/asm/io.h b/arch/unicore32/include/asm/io.h index 1a5c5a5eb39c..adddf6d64077 100644 --- a/arch/unicore32/include/asm/io.h +++ b/arch/unicore32/include/asm/io.h | |||
@@ -37,15 +37,9 @@ extern void __uc32_iounmap(volatile void __iomem *addr); | |||
37 | */ | 37 | */ |
38 | #define ioremap(cookie, size) __uc32_ioremap(cookie, size) | 38 | #define ioremap(cookie, size) __uc32_ioremap(cookie, size) |
39 | #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) | 39 | #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) |
40 | #define ioremap_nocache(cookie, size) __uc32_ioremap(cookie, size) | ||
40 | #define iounmap(cookie) __uc32_iounmap(cookie) | 41 | #define iounmap(cookie) __uc32_iounmap(cookie) |
41 | 42 | ||
42 | /* | ||
43 | * Convert a physical pointer to a virtual kernel pointer for /dev/mem | ||
44 | * access | ||
45 | */ | ||
46 | #undef xlate_dev_mem_ptr | ||
47 | #define xlate_dev_mem_ptr(p) __va(p) | ||
48 | |||
49 | #define HAVE_ARCH_PIO_SIZE | 43 | #define HAVE_ARCH_PIO_SIZE |
50 | #define PIO_OFFSET (unsigned int)(PCI_IOBASE) | 44 | #define PIO_OFFSET (unsigned int)(PCI_IOBASE) |
51 | #define PIO_MASK (unsigned int)(IO_SPACE_LIMIT) | 45 | #define PIO_MASK (unsigned int)(IO_SPACE_LIMIT) |
diff --git a/arch/unicore32/kernel/puv3-nb0916.c b/arch/unicore32/kernel/puv3-nb0916.c index 37b12a06b499..181108b8ecce 100644 --- a/arch/unicore32/kernel/puv3-nb0916.c +++ b/arch/unicore32/kernel/puv3-nb0916.c | |||
@@ -123,7 +123,7 @@ int __init mach_nb0916_init(void) | |||
123 | 123 | ||
124 | if (request_irq(gpio_to_irq(GPI_LCD_CASE_OFF), | 124 | if (request_irq(gpio_to_irq(GPI_LCD_CASE_OFF), |
125 | &nb0916_lcdcaseoff_handler, | 125 | &nb0916_lcdcaseoff_handler, |
126 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | 126 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
127 | "NB0916 lcd case off", NULL) < 0) { | 127 | "NB0916 lcd case off", NULL) < 0) { |
128 | 128 | ||
129 | printk(KERN_DEBUG "LCD-Case-OFF IRQ %d not available\n", | 129 | printk(KERN_DEBUG "LCD-Case-OFF IRQ %d not available\n", |
@@ -131,7 +131,7 @@ int __init mach_nb0916_init(void) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | if (request_irq(gpio_to_irq(GPI_OTP_INT), &nb0916_overheat_handler, | 133 | if (request_irq(gpio_to_irq(GPI_OTP_INT), &nb0916_overheat_handler, |
134 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | 134 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
135 | "NB0916 overheating protection", NULL) < 0) { | 135 | "NB0916 overheating protection", NULL) < 0) { |
136 | 136 | ||
137 | printk(KERN_DEBUG "Overheating Protection IRQ %d not available\n", | 137 | printk(KERN_DEBUG "Overheating Protection IRQ %d not available\n", |
diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c index 673d7a89d8ff..87adbf5ebfe0 100644 --- a/arch/unicore32/kernel/setup.c +++ b/arch/unicore32/kernel/setup.c | |||
@@ -65,7 +65,7 @@ static char default_command_line[COMMAND_LINE_SIZE] __initdata = CONFIG_CMDLINE; | |||
65 | */ | 65 | */ |
66 | static struct resource mem_res[] = { | 66 | static struct resource mem_res[] = { |
67 | { | 67 | { |
68 | .name = "Kernel text", | 68 | .name = "Kernel code", |
69 | .start = 0, | 69 | .start = 0, |
70 | .end = 0, | 70 | .end = 0, |
71 | .flags = IORESOURCE_MEM | 71 | .flags = IORESOURCE_MEM |
diff --git a/arch/unicore32/kernel/signal.c b/arch/unicore32/kernel/signal.c index b163fca56789..911b549a6df5 100644 --- a/arch/unicore32/kernel/signal.c +++ b/arch/unicore32/kernel/signal.c | |||
@@ -63,10 +63,7 @@ static int restore_sigframe(struct pt_regs *regs, struct sigframe __user *sf) | |||
63 | err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); | 63 | err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); |
64 | if (err == 0) { | 64 | if (err == 0) { |
65 | sigdelsetmask(&set, ~_BLOCKABLE); | 65 | sigdelsetmask(&set, ~_BLOCKABLE); |
66 | spin_lock_irq(¤t->sighand->siglock); | 66 | set_current_blocked(&set); |
67 | current->blocked = set; | ||
68 | recalc_sigpending(); | ||
69 | spin_unlock_irq(¤t->sighand->siglock); | ||
70 | } | 67 | } |
71 | 68 | ||
72 | err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); | 69 | err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); |
@@ -321,6 +318,7 @@ static int handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
321 | { | 318 | { |
322 | struct thread_info *thread = current_thread_info(); | 319 | struct thread_info *thread = current_thread_info(); |
323 | struct task_struct *tsk = current; | 320 | struct task_struct *tsk = current; |
321 | sigset_t blocked; | ||
324 | int usig = sig; | 322 | int usig = sig; |
325 | int ret; | 323 | int ret; |
326 | 324 | ||
@@ -372,13 +370,10 @@ static int handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
372 | /* | 370 | /* |
373 | * Block the signal if we were successful. | 371 | * Block the signal if we were successful. |
374 | */ | 372 | */ |
375 | spin_lock_irq(&tsk->sighand->siglock); | 373 | sigorsets(&blocked, &tsk->blocked, &ka->sa.sa_mask); |
376 | sigorsets(&tsk->blocked, &tsk->blocked, | ||
377 | &ka->sa.sa_mask); | ||
378 | if (!(ka->sa.sa_flags & SA_NODEFER)) | 374 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
379 | sigaddset(&tsk->blocked, sig); | 375 | sigaddset(&blocked, sig); |
380 | recalc_sigpending(); | 376 | set_current_blocked(&blocked); |
381 | spin_unlock_irq(&tsk->sighand->siglock); | ||
382 | 377 | ||
383 | return 0; | 378 | return 0; |
384 | } | 379 | } |
diff --git a/arch/unicore32/kernel/time.c b/arch/unicore32/kernel/time.c index 080710c09241..d3824b2ff644 100644 --- a/arch/unicore32/kernel/time.c +++ b/arch/unicore32/kernel/time.c | |||
@@ -86,7 +86,7 @@ static struct clocksource cksrc_puv3_oscr = { | |||
86 | 86 | ||
87 | static struct irqaction puv3_timer_irq = { | 87 | static struct irqaction puv3_timer_irq = { |
88 | .name = "ost0", | 88 | .name = "ost0", |
89 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, | 89 | .flags = IRQF_TIMER | IRQF_IRQPOLL, |
90 | .handler = puv3_ost0_interrupt, | 90 | .handler = puv3_ost0_interrupt, |
91 | .dev_id = &ckevt_puv3_osmr0, | 91 | .dev_id = &ckevt_puv3_osmr0, |
92 | }; | 92 | }; |