diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 08:07:48 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 08:07:48 -0400 |
commit | 67ba5293f705eb1d1b98710e5ccb0f615936a6fc (patch) | |
tree | cdb4cfd94033b5c0f42eeb4de368802049880a12 /arch/tile/kernel | |
parent | 86627c93b35082f7a0e4d3111546943984b932c7 (diff) | |
parent | d909a81b198a397593495508c4a5755fe95552fb (diff) |
Merge branch 'smp/threadalloc' into smp/hotplug
Reason: Pull in the separate branch which was created so arch/tile can
base further work on it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/tile/kernel')
-rw-r--r-- | arch/tile/kernel/pci.c | 4 | ||||
-rw-r--r-- | arch/tile/kernel/process.c | 23 |
2 files changed, 4 insertions, 23 deletions
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index a1bb59eecc18..b56d12bf5900 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -141,7 +141,7 @@ static int __devinit tile_init_irqs(int controller_id, | |||
141 | * | 141 | * |
142 | * Returns the number of controllers discovered. | 142 | * Returns the number of controllers discovered. |
143 | */ | 143 | */ |
144 | int __devinit tile_pci_init(void) | 144 | int __init tile_pci_init(void) |
145 | { | 145 | { |
146 | int i; | 146 | int i; |
147 | 147 | ||
@@ -287,7 +287,7 @@ static void __devinit fixup_read_and_payload_sizes(void) | |||
287 | * The controllers have been set up by the time we get here, by a call to | 287 | * The controllers have been set up by the time we get here, by a call to |
288 | * tile_pci_init. | 288 | * tile_pci_init. |
289 | */ | 289 | */ |
290 | int __devinit pcibios_init(void) | 290 | int __init pcibios_init(void) |
291 | { | 291 | { |
292 | int i; | 292 | int i; |
293 | 293 | ||
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c index 2d5ef617bb39..efb9833ce892 100644 --- a/arch/tile/kernel/process.c +++ b/arch/tile/kernel/process.c | |||
@@ -114,27 +114,10 @@ void cpu_idle(void) | |||
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | struct thread_info *alloc_thread_info_node(struct task_struct *task, int node) | ||
118 | { | ||
119 | struct page *page; | ||
120 | gfp_t flags = GFP_KERNEL; | ||
121 | |||
122 | #ifdef CONFIG_DEBUG_STACK_USAGE | ||
123 | flags |= __GFP_ZERO; | ||
124 | #endif | ||
125 | |||
126 | page = alloc_pages_node(node, flags, THREAD_SIZE_ORDER); | ||
127 | if (!page) | ||
128 | return NULL; | ||
129 | |||
130 | return (struct thread_info *)page_address(page); | ||
131 | } | ||
132 | |||
133 | /* | 117 | /* |
134 | * Free a thread_info node, and all of its derivative | 118 | * Release a thread_info structure |
135 | * data structures. | ||
136 | */ | 119 | */ |
137 | void free_thread_info(struct thread_info *info) | 120 | void arch_release_thread_info(struct thread_info *info) |
138 | { | 121 | { |
139 | struct single_step_state *step_state = info->step_state; | 122 | struct single_step_state *step_state = info->step_state; |
140 | 123 | ||
@@ -169,8 +152,6 @@ void free_thread_info(struct thread_info *info) | |||
169 | */ | 152 | */ |
170 | kfree(step_state); | 153 | kfree(step_state); |
171 | } | 154 | } |
172 | |||
173 | free_pages((unsigned long)info, THREAD_SIZE_ORDER); | ||
174 | } | 155 | } |
175 | 156 | ||
176 | static void save_arch_state(struct thread_struct *t); | 157 | static void save_arch_state(struct thread_struct *t); |