Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
This commit is contained in:
@@ -627,6 +627,14 @@ static int validate_change(const struct cpuset *cur, const struct cpuset *trial)
|
||||
* Call with cpuset_sem held. May nest a call to the
|
||||
* lock_cpu_hotplug()/unlock_cpu_hotplug() pair.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Hack to avoid 2.6.13 partial node dynamic sched domain bug.
|
||||
* Disable letting 'cpu_exclusive' cpusets define dynamic sched
|
||||
* domains, until the sched domain can handle partial nodes.
|
||||
* Remove this #if hackery when sched domains fixed.
|
||||
*/
|
||||
#if 0
|
||||
static void update_cpu_domains(struct cpuset *cur)
|
||||
{
|
||||
struct cpuset *c, *par = cur->parent;
|
||||
@@ -667,6 +675,11 @@ static void update_cpu_domains(struct cpuset *cur)
|
||||
partition_sched_domains(&pspan, &cspan);
|
||||
unlock_cpu_hotplug();
|
||||
}
|
||||
#else
|
||||
static void update_cpu_domains(struct cpuset *cur)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static int update_cpumask(struct cpuset *cs, char *buf)
|
||||
{
|
||||
|
@@ -3378,8 +3378,8 @@ EXPORT_SYMBOL(set_user_nice);
|
||||
*/
|
||||
int can_nice(const task_t *p, const int nice)
|
||||
{
|
||||
/* convert nice value [19,-20] to rlimit style value [0,39] */
|
||||
int nice_rlim = 19 - nice;
|
||||
/* convert nice value [19,-20] to rlimit style value [1,40] */
|
||||
int nice_rlim = 20 - nice;
|
||||
return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
|
||||
capable(CAP_SYS_NICE));
|
||||
}
|
||||
|
@@ -692,7 +692,7 @@ static void handle_stop_signal(int sig, struct task_struct *p)
|
||||
{
|
||||
struct task_struct *t;
|
||||
|
||||
if (p->flags & SIGNAL_GROUP_EXIT)
|
||||
if (p->signal->flags & SIGNAL_GROUP_EXIT)
|
||||
/*
|
||||
* The process is in the middle of dying already.
|
||||
*/
|
||||
|
@@ -1023,7 +1023,7 @@ asmlinkage long sys_getppid(void)
|
||||
parent = me->group_leader->real_parent;
|
||||
for (;;) {
|
||||
pid = parent->tgid;
|
||||
#ifdef CONFIG_SMP
|
||||
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
|
||||
{
|
||||
struct task_struct *old = parent;
|
||||
|
||||
|
Reference in New Issue
Block a user