Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302791
b: refs/heads/master
c: cce4517
h: refs/heads/master
i:
  302789: 912c0ff
  302787: adc3df5
  302783: 04e906a
v: v3
  • Loading branch information
Thomas Gleixner committed May 5, 2012
1 parent 61416c4 commit 53a6066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 43a18b1e588d1b6a993eedd44dd3154590d9bebd
refs/heads/master: cce4517f33384c3794c759e206cc8e1bb6df146b
9 changes: 2 additions & 7 deletions trunk/arch/frv/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,12 @@ EXPORT_SYMBOL(pm_power_off);

struct task_struct *alloc_task_struct_node(int node)
{
struct task_struct *p = kmalloc_node(THREAD_SIZE, GFP_KERNEL, node);

if (p)
atomic_set((atomic_t *)(p+1), 1);
return p;
return kmalloc_node(sizeof(task_struct), GFP_KERNEL, node);
}

void free_task_struct(struct task_struct *p)
{
if (atomic_dec_and_test((atomic_t *)(p+1)))
kfree(p);
kfree(p);
}

static void core_sleep_idle(void)
Expand Down

0 comments on commit 53a6066

Please sign in to comment.