Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125325
b: refs/heads/master
c: d5dd3db
h: refs/heads/master
i:
  125323: 6ac775b
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Nov 24, 2008
1 parent 0560b94 commit 139ffb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 5a16f3d30ca4e3f166d691220c003066a14e32b5
refs/heads/master: d5dd3db1dce73cdd5c45c5a3498c51bd21b8864b
7 changes: 3 additions & 4 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -6706,7 +6706,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,

static void sched_domain_debug(struct sched_domain *sd, int cpu)
{
cpumask_t *groupmask;
cpumask_var_t groupmask;
int level = 0;

if (!sd) {
Expand All @@ -6716,8 +6716,7 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)

printk(KERN_DEBUG "CPU%d attaching sched-domain:\n", cpu);

groupmask = kmalloc(sizeof(cpumask_t), GFP_KERNEL);
if (!groupmask) {
if (!alloc_cpumask_var(&groupmask, GFP_KERNEL)) {
printk(KERN_DEBUG "Cannot load-balance (out of memory)\n");
return;
}
Expand All @@ -6730,7 +6729,7 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
if (!sd)
break;
}
kfree(groupmask);
free_cpumask_var(groupmask);
}
#else /* !CONFIG_SCHED_DEBUG */
# define sched_domain_debug(sd, cpu) do { } while (0)
Expand Down

0 comments on commit 139ffb5

Please sign in to comment.