Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69137
b: refs/heads/master
c: ad1cdc1
h: refs/heads/master
i:
  69135: ff5595c
v: v3
  • Loading branch information
Milton Miller authored and Ingo Molnar committed Oct 15, 2007
1 parent c9d7e2c commit ff76c72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6382bc90f5664c450afc1f896e7ddb35ba182af9
refs/heads/master: ad1cdc1d7883e88f936f7888a092e4e3e6d8c631
10 changes: 8 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5245,8 +5245,6 @@ static struct ctl_table *sd_alloc_ctl_entry(int n)
struct ctl_table *entry =
kcalloc(n, sizeof(struct ctl_table), GFP_KERNEL);

BUG_ON(!entry);

return entry;
}

Expand Down Expand Up @@ -5279,6 +5277,9 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd)
{
struct ctl_table *table = sd_alloc_ctl_entry(12);

if (table == NULL)
return NULL;

set_table_entry(&table[0], "min_interval", &sd->min_interval,
sizeof(long), 0644, proc_doulongvec_minmax);
set_table_entry(&table[1], "max_interval", &sd->max_interval,
Expand Down Expand Up @@ -5316,6 +5317,8 @@ static ctl_table *sd_alloc_ctl_cpu_table(int cpu)
for_each_domain(cpu, sd)
domain_num++;
entry = table = sd_alloc_ctl_entry(domain_num + 1);
if (table == NULL)
return NULL;

i = 0;
for_each_domain(cpu, sd) {
Expand All @@ -5336,6 +5339,9 @@ static void register_sched_domain_sysctl(void)
struct ctl_table *entry = sd_alloc_ctl_entry(cpu_num + 1);
char buf[32];

if (entry == NULL)
return;

sd_ctl_dir[0].child = entry;

for_each_online_cpu(i) {
Expand Down

0 comments on commit ff76c72

Please sign in to comment.