Don't panic when lwp_suspend finds an LWP on another CPU, just return

EINVAL for now.
This commit is contained in:
fvdl 2005-02-12 21:39:00 +00:00
parent 365df27e4b
commit 7b10f1cabc
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_lwp.c,v 1.28 2004/10/06 08:55:27 skrll Exp $ */ /* $NetBSD: kern_lwp.c,v 1.29 2005/02/12 21:39:00 fvdl Exp $ */
/*- /*-
* Copyright (c) 2001 The NetBSD Foundation, Inc. * Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.28 2004/10/06 08:55:27 skrll Exp $"); __KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.29 2005/02/12 21:39:00 fvdl Exp $");
#include "opt_multiprocessor.h" #include "opt_multiprocessor.h"
@ -241,8 +241,8 @@ lwp_suspend(struct lwp *l, struct lwp *t)
panic("_lwp_suspend: Stopped LWP in running process!"); panic("_lwp_suspend: Stopped LWP in running process!");
break; break;
case LSONPROC: case LSONPROC:
panic("XXX multiprocessor LWPs? Implement me!"); /* XXX multiprocessor LWPs? Implement me! */
break; return (EINVAL);
} }
} }