rename free_process() ro release_process()

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2014-04-23 13:31:15 +09:00
parent 2a9bd2efb1
commit 7103fed1dc
2 changed files with 5 additions and 5 deletions

View File

@ -161,7 +161,7 @@ struct process *clone_process(struct process *org, unsigned long pc,
unsigned long sp, int clone_flags);
void destroy_process(struct process *proc);
void hold_process(struct process *proc);
void free_process(struct process *proc);
void release_process(struct process *proc);
void flush_process_memory(struct process *proc);
void free_process_memory(struct process *proc);
int populate_process_memory(struct process *proc, void *start, size_t len);

View File

@ -222,7 +222,7 @@ err_free_sighandler:
err_free_proc:
ihk_mc_free_pages(proc, KERNEL_STACK_NR_PAGES);
release_process(org);
return NULL;
}
@ -1570,7 +1570,7 @@ void free_process_memory(struct process *proc)
ihk_mc_spinlock_unlock_noirq(&vm->memory_range_lock);
ihk_mc_pt_destroy(vm->page_table);
free_process(vm->owner_process);
release_process(vm->owner_process);
}
int populate_process_memory(struct process *proc, void *start, size_t len)
@ -1628,7 +1628,7 @@ void destroy_process(struct process *proc)
ihk_mc_free_pages(proc, KERNEL_STACK_NR_PAGES);
}
void free_process(struct process *proc)
void release_process(struct process *proc)
{
if (!ihk_atomic_dec_and_test(&proc->refcount)) {
return;
@ -1748,7 +1748,7 @@ void schedule(void)
if ((last != NULL) && (last->status & (PS_ZOMBIE | PS_EXITED))) {
free_process_memory(last);
free_process(last);
release_process(last);
}
}
else {