kthread_exit needs no stinkin argument.

This commit is contained in:
Julian Elischer 2007-10-26 17:03:22 +00:00
parent 39b920eb0c
commit dd1b3ff97e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173031
2 changed files with 6 additions and 3 deletions

View File

@ -254,7 +254,10 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
p = &proc0;
oldtd = &thread0;
} else {
oldtd = FIRST_THREAD_IN_PROC(p);
if (p == &proc0)
oldtd = &thread0;
else
oldtd = FIRST_THREAD_IN_PROC(p);
}
/* Initialize our td */
@ -315,7 +318,7 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
}
void
kthread_exit(int ecode)
kthread_exit(void)
{
thread_exit();
}

View File

@ -68,7 +68,7 @@ int kproc_kthread_add(void (*)(void *), void *,
int kthread_add(void (*)(void *), void *,
struct proc *, struct thread **,
int flags, int pages, const char *, ...) __printflike(7, 8);
void kthread_exit(int) __dead2;
void kthread_exit(void) __dead2;
int kthread_resume(struct thread *);
void kthread_shutdown(void *, int);
void kthread_start(const void *);