Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302834
b: refs/heads/master
c: d909a81
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed May 8, 2012
1 parent 6811c16 commit 8afd89e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 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: 41101809a865dd0be1b56eff46c83fad321870b2
refs/heads/master: d909a81b198a397593495508c4a5755fe95552fb
6 changes: 2 additions & 4 deletions trunk/arch/tile/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,14 @@ struct thread_info {

#ifndef __ASSEMBLY__

void arch_release_thread_info(struct thread_info *info);

/* How to get the thread information struct from C. */
register unsigned long stack_pointer __asm__("sp");

#define current_thread_info() \
((struct thread_info *)(stack_pointer & -THREAD_SIZE))

#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
extern struct thread_info *alloc_thread_info_node(struct task_struct *task, int node);
extern void free_thread_info(struct thread_info *info);

/* Sit on a nap instruction until interrupted. */
extern void smp_nap(void);

Expand Down
23 changes: 2 additions & 21 deletions trunk/arch/tile/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,27 +114,10 @@ void cpu_idle(void)
}
}

struct thread_info *alloc_thread_info_node(struct task_struct *task, int node)
{
struct page *page;
gfp_t flags = GFP_KERNEL;

#ifdef CONFIG_DEBUG_STACK_USAGE
flags |= __GFP_ZERO;
#endif

page = alloc_pages_node(node, flags, THREAD_SIZE_ORDER);
if (!page)
return NULL;

return (struct thread_info *)page_address(page);
}

/*
* Free a thread_info node, and all of its derivative
* data structures.
* Release a thread_info structure
*/
void free_thread_info(struct thread_info *info)
void arch_release_thread_info(struct thread_info *info)
{
struct single_step_state *step_state = info->step_state;

Expand Down Expand Up @@ -169,8 +152,6 @@ void free_thread_info(struct thread_info *info)
*/
kfree(step_state);
}

free_pages((unsigned long)info, THREAD_SIZE_ORDER);
}

static void save_arch_state(struct thread_struct *t);
Expand Down

0 comments on commit 8afd89e

Please sign in to comment.