Commit fcb82768 authored by David Mosberger's avatar David Mosberger

ia64: Misc small fixe: adjust for 2-argument version of show_stack(), remove

	left-over bits from the old task-creation/destruction hacks.  Fix typo
	in comment for pgprot_noncached().
parent 4a573a28
...@@ -356,7 +356,7 @@ init_handler_platform (sal_log_processor_info_t *proc_ptr, ...@@ -356,7 +356,7 @@ init_handler_platform (sal_log_processor_info_t *proc_ptr,
continue; continue;
printk("\nBacktrace of pid %d (%s)\n", t->pid, t->comm); printk("\nBacktrace of pid %d (%s)\n", t->pid, t->comm);
show_stack(t); show_stack(t, NULL);
} while_each_thread (g, t); } while_each_thread (g, t);
} }
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
...@@ -65,11 +65,11 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg) ...@@ -65,11 +65,11 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg)
void void
show_trace_task (struct task_struct *task) show_trace_task (struct task_struct *task)
{ {
show_stack(task); show_stack(task, NULL);
} }
void void
show_stack (struct task_struct *task) show_stack (struct task_struct *task, unsigned long *sp)
{ {
if (!task) if (!task)
unw_init_running(ia64_do_show_stack, 0); unw_init_running(ia64_do_show_stack, 0);
...@@ -84,7 +84,7 @@ show_stack (struct task_struct *task) ...@@ -84,7 +84,7 @@ show_stack (struct task_struct *task)
void void
dump_stack (void) dump_stack (void)
{ {
show_stack(NULL); show_stack(NULL, NULL);
} }
void void
...@@ -138,7 +138,7 @@ show_regs (struct pt_regs *regs) ...@@ -138,7 +138,7 @@ show_regs (struct pt_regs *regs)
((i == sof - 1) || (i % 3) == 2) ? "\n" : " "); ((i == sof - 1) || (i % 3) == 2) ? "\n" : " ");
} }
} else } else
show_stack(NULL); show_stack(NULL, NULL);
} }
void void
...@@ -739,29 +739,3 @@ machine_power_off (void) ...@@ -739,29 +739,3 @@ machine_power_off (void)
pm_power_off(); pm_power_off();
machine_halt(); machine_halt();
} }
void __init
init_task_struct_cache (void)
{
}
struct task_struct *
dup_task_struct(struct task_struct *orig)
{
struct task_struct *tsk;
tsk = (void *) __get_free_pages(GFP_KERNEL, KERNEL_STACK_SIZE_ORDER);
if (!tsk)
return NULL;
memcpy(tsk, orig, sizeof(struct task_struct) + sizeof(struct thread_info));
tsk->thread_info = (struct thread_info *) ((char *) tsk + IA64_TASK_SIZE);
atomic_set(&tsk->usage, 2);
return tsk;
}
void
free_task_struct (struct task_struct *tsk)
{
free_pages((unsigned long) tsk, KERNEL_STACK_SIZE_ORDER);
}
...@@ -278,10 +278,9 @@ ia64_phys_addr_valid (unsigned long addr) ...@@ -278,10 +278,9 @@ ia64_phys_addr_valid (unsigned long addr)
#define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D)) #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D))
/* /*
* Macro to make mark a page protection value as "uncacheable". Note * Macro to a page protection value as "uncacheable". Note that "protection" is really a
* that "protection" is really a misnomer here as the protection value * misnomer here as the protection value contains the memory attribute bits, dirty bits,
* contains the memory attribute bits, dirty bits, and various other * and various other bits as well.
* bits as well.
*/ */
#define pgprot_noncached(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC) #define pgprot_noncached(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment