Code Review
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
[linux-2.6.git]
/
arch
/
ia64
/
kernel
/
process.c
diff --git
a/arch/ia64/kernel/process.c
b/arch/ia64/kernel/process.c
index 8bb571a8a73840447a23531c49cccb4602008c5c..d1c3ed9943e52d8ccad85553e1d1008ae7dc3629 100644
(file)
--- a/
arch/ia64/kernel/process.c
+++ b/
arch/ia64/kernel/process.c
@@
-155,7
+155,7
@@
show_regs (struct pt_regs *regs)
}
void
}
void
-do_notify_resume_user (sigset_t *
oldset
, struct sigscratch *scr, long in_syscall)
+do_notify_resume_user (sigset_t *
unused
, struct sigscratch *scr, long in_syscall)
{
if (fsys_mode(current, &scr->pt)) {
/* defer signal-handling etc. until we return to privilege-level 0. */
{
if (fsys_mode(current, &scr->pt)) {
/* defer signal-handling etc. until we return to privilege-level 0. */
@@
-170,8
+170,8
@@
do_notify_resume_user (sigset_t *oldset, struct sigscratch *scr, long in_syscall
#endif
/* deal with pending signal delivery */
#endif
/* deal with pending signal delivery */
- if (test_thread_flag(TIF_SIGPENDING))
- ia64_do_signal(
oldset,
scr, in_syscall);
+ if (test_thread_flag(TIF_SIGPENDING)
||test_thread_flag(TIF_RESTORE_SIGMASK)
)
+ ia64_do_signal(scr, in_syscall);
}
static int pal_halt = 1;
}
static int pal_halt = 1;
@@
-236,6
+236,7
@@
void cpu_idle_wait(void)
{
unsigned int cpu, this_cpu = get_cpu();
cpumask_t map;
{
unsigned int cpu, this_cpu = get_cpu();
cpumask_t map;
+ cpumask_t tmp = current->cpus_allowed;
set_cpus_allowed(current, cpumask_of_cpu(this_cpu));
put_cpu();
set_cpus_allowed(current, cpumask_of_cpu(this_cpu));
put_cpu();
@@
-257,6
+258,7
@@
void cpu_idle_wait(void)
}
cpus_and(map, map, cpu_online_map);
} while (!cpus_empty(map));
}
cpus_and(map, map, cpu_online_map);
} while (!cpus_empty(map));
+ set_cpus_allowed(current, tmp);
}
EXPORT_SYMBOL_GPL(cpu_idle_wait);
}
EXPORT_SYMBOL_GPL(cpu_idle_wait);