diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-01-10 02:37:52 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-01-10 02:37:52 -0500 |
commit | 7a73c81ec37c0c59ee04d4f6eb05c9b7b1413741 (patch) | |
tree | bc5d9770473e9fbdc6ee59b2aa359dcfafe6809f /arch/sh/kernel | |
parent | 4414d38a8845b229a8e7ea0105fe1bb263b65993 (diff) | |
parent | abef364050bcf8f46b0cb4bd47947ec2951664d3 (diff) |
Merge branch 'sh/urgent' into sh-latest
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/sq.c | 8 | ||||
-rw-r--r-- | arch/sh/kernel/entry-common.S | 1 | ||||
-rw-r--r-- | arch/sh/kernel/signal_32.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/signal_64.c | 4 |
4 files changed, 5 insertions, 12 deletions
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c index a8140f0bbf6c..0a47bd3e7bee 100644 --- a/arch/sh/kernel/cpu/sh4/sq.c +++ b/arch/sh/kernel/cpu/sh4/sq.c | |||
@@ -337,7 +337,7 @@ static struct kobj_type ktype_percpu_entry = { | |||
337 | .default_attrs = sq_sysfs_attrs, | 337 | .default_attrs = sq_sysfs_attrs, |
338 | }; | 338 | }; |
339 | 339 | ||
340 | static int __devinit sq_dev_add(struct device *dev) | 340 | static int sq_dev_add(struct device *dev, struct subsys_interface *sif) |
341 | { | 341 | { |
342 | unsigned int cpu = dev->id; | 342 | unsigned int cpu = dev->id; |
343 | struct kobject *kobj; | 343 | struct kobject *kobj; |
@@ -355,7 +355,7 @@ static int __devinit sq_dev_add(struct device *dev) | |||
355 | return error; | 355 | return error; |
356 | } | 356 | } |
357 | 357 | ||
358 | static int __devexit sq_dev_remove(struct device *dev) | 358 | static int sq_dev_remove(struct device *dev, struct subsys_interface *sif) |
359 | { | 359 | { |
360 | unsigned int cpu = dev->id; | 360 | unsigned int cpu = dev->id; |
361 | struct kobject *kobj = sq_kobject[cpu]; | 361 | struct kobject *kobj = sq_kobject[cpu]; |
@@ -365,10 +365,10 @@ static int __devexit sq_dev_remove(struct device *dev) | |||
365 | } | 365 | } |
366 | 366 | ||
367 | static struct subsys_interface sq_interface = { | 367 | static struct subsys_interface sq_interface = { |
368 | .name = "sq" | 368 | .name = "sq", |
369 | .subsys = &cpu_subsys, | 369 | .subsys = &cpu_subsys, |
370 | .add_dev = sq_dev_add, | 370 | .add_dev = sq_dev_add, |
371 | .remove_dev = __devexit_p(sq_dev_remove), | 371 | .remove_dev = sq_dev_remove, |
372 | }; | 372 | }; |
373 | 373 | ||
374 | static int __init sq_api_init(void) | 374 | static int __init sq_api_init(void) |
diff --git a/arch/sh/kernel/entry-common.S b/arch/sh/kernel/entry-common.S index 2b15ae60c3a0..f67601cb3f1f 100644 --- a/arch/sh/kernel/entry-common.S +++ b/arch/sh/kernel/entry-common.S | |||
@@ -145,6 +145,7 @@ work_notifysig: | |||
145 | mov r15, r4 | 145 | mov r15, r4 |
146 | mov r12, r5 ! set arg1(save_r0) | 146 | mov r12, r5 ! set arg1(save_r0) |
147 | mov r0, r6 | 147 | mov r0, r6 |
148 | sti | ||
148 | mov.l 2f, r1 | 149 | mov.l 2f, r1 |
149 | mov.l 3f, r0 | 150 | mov.l 3f, r0 |
150 | jmp @r1 | 151 | jmp @r1 |
diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c index 579cd2ca358d..a7a55ed43a59 100644 --- a/arch/sh/kernel/signal_32.c +++ b/arch/sh/kernel/signal_32.c | |||
@@ -588,9 +588,6 @@ static void do_signal(struct pt_regs *regs, unsigned int save_r0) | |||
588 | if (!user_mode(regs)) | 588 | if (!user_mode(regs)) |
589 | return; | 589 | return; |
590 | 590 | ||
591 | if (try_to_freeze()) | ||
592 | goto no_signal; | ||
593 | |||
594 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) | 591 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) |
595 | oldset = ¤t->saved_sigmask; | 592 | oldset = ¤t->saved_sigmask; |
596 | else | 593 | else |
@@ -618,7 +615,6 @@ static void do_signal(struct pt_regs *regs, unsigned int save_r0) | |||
618 | return; | 615 | return; |
619 | } | 616 | } |
620 | 617 | ||
621 | no_signal: | ||
622 | /* Did we come from a system call? */ | 618 | /* Did we come from a system call? */ |
623 | if (regs->tra >= 0) { | 619 | if (regs->tra >= 0) { |
624 | /* Restart the system call - no handlers present */ | 620 | /* Restart the system call - no handlers present */ |
diff --git a/arch/sh/kernel/signal_64.c b/arch/sh/kernel/signal_64.c index 5a9f1f10ebf4..6b5603fe274b 100644 --- a/arch/sh/kernel/signal_64.c +++ b/arch/sh/kernel/signal_64.c | |||
@@ -98,9 +98,6 @@ static int do_signal(struct pt_regs *regs, sigset_t *oldset) | |||
98 | if (!user_mode(regs)) | 98 | if (!user_mode(regs)) |
99 | return 1; | 99 | return 1; |
100 | 100 | ||
101 | if (try_to_freeze()) | ||
102 | goto no_signal; | ||
103 | |||
104 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) | 101 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) |
105 | oldset = ¤t->saved_sigmask; | 102 | oldset = ¤t->saved_sigmask; |
106 | else if (!oldset) | 103 | else if (!oldset) |
@@ -125,7 +122,6 @@ static int do_signal(struct pt_regs *regs, sigset_t *oldset) | |||
125 | } | 122 | } |
126 | } | 123 | } |
127 | 124 | ||
128 | no_signal: | ||
129 | /* Did we come from a system call? */ | 125 | /* Did we come from a system call? */ |
130 | if (regs->syscall_nr >= 0) { | 126 | if (regs->syscall_nr >= 0) { |
131 | /* Restart the system call - no handlers present */ | 127 | /* Restart the system call - no handlers present */ |