From 9bb4ac59a4a1b89bb3e875d126659e933fd93d97 Mon Sep 17 00:00:00 2001 From: Lance Poore Date: Sun, 12 Aug 2012 15:25:06 -0500 Subject: [PATCH] SCHEDULER: Autogroup patch group by current user android UID instead of task ID --- kernel/sys.c | 3 ++- kernel/sysctl.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index 56d01152867..a6105532d07 100755 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -656,6 +656,7 @@ static int set_user(struct cred *new) free_uid(new->user); new->user = new_user; + sched_autogroup_create_attach(current); return 0; } @@ -1165,7 +1166,7 @@ SYSCALL_DEFINE0(setsid) write_unlock_irq(&tasklist_lock); if (err > 0) { proc_sid_connector(group_leader); - sched_autogroup_create_attach(group_leader); + } return err; } diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e028c843a85..b23667f076c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -376,7 +376,7 @@ static struct ctl_table kern_table[] = { .data = &sysctl_sched_autogroup_enabled, .maxlen = sizeof(unsigned int), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dointvec, .extra1 = &zero, .extra2 = &one, },