aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/stack.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-07 11:36:54 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-08-13 16:26:01 -0400
commitbc1a298f4e04833db4c430df59b90039f0170515 (patch)
tree802da739309efeab62317f62ec4f1989f3f7d8dd /arch/tile/kernel/stack.c
parent1182b69cb24c4f7d7ee8c8afe41b5ab2bc05a15b (diff)
tile: support CONFIG_PREEMPT
This change adds support for CONFIG_PREEMPT (full kernel preemption). In addition to the core support, this change includes a number of places where we fix up uses of smp_processor_id() and per-cpu variables. I also eliminate the PAGE_HOME_HERE and PAGE_HOME_UNKNOWN values for page homing, as it turns out they weren't being used. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/stack.c')
-rw-r--r--arch/tile/kernel/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/stack.c b/arch/tile/kernel/stack.c
index c972689231ef..176ffe48eee9 100644
--- a/arch/tile/kernel/stack.c
+++ b/arch/tile/kernel/stack.c
@@ -194,7 +194,7 @@ static int KBacktraceIterator_next_item_inclusive(
194 */ 194 */
195static void validate_stack(struct pt_regs *regs) 195static void validate_stack(struct pt_regs *regs)
196{ 196{
197 int cpu = smp_processor_id(); 197 int cpu = raw_smp_processor_id();
198 unsigned long ksp0 = get_current_ksp0(); 198 unsigned long ksp0 = get_current_ksp0();
199 unsigned long ksp0_base = ksp0 - THREAD_SIZE; 199 unsigned long ksp0_base = ksp0 - THREAD_SIZE;
200 unsigned long sp = stack_pointer; 200 unsigned long sp = stack_pointer;
@@ -392,7 +392,7 @@ void tile_show_stack(struct KBacktraceIterator *kbt, int headers)
392 pr_err("Starting stack dump of tid %d, pid %d (%s)" 392 pr_err("Starting stack dump of tid %d, pid %d (%s)"
393 " on cpu %d at cycle %lld\n", 393 " on cpu %d at cycle %lld\n",
394 kbt->task->pid, kbt->task->tgid, kbt->task->comm, 394 kbt->task->pid, kbt->task->tgid, kbt->task->comm,
395 smp_processor_id(), get_cycles()); 395 raw_smp_processor_id(), get_cycles());
396 } 396 }
397 kbt->verbose = 1; 397 kbt->verbose = 1;
398 i = 0; 398 i = 0;