Fix cpu_need_resched().
This commit is contained in:
parent
f73e8d8529
commit
59a5b82b4e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mips_machdep.c,v 1.196 2007/10/17 19:55:39 garbled Exp $ */
|
||||
/* $NetBSD: mips_machdep.c,v 1.197 2007/11/19 19:03:13 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2002 Wasabi Systems, Inc.
|
||||
@ -119,7 +119,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.196 2007/10/17 19:55:39 garbled Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.197 2007/11/19 19:03:13 ad Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
|
||||
@ -1776,14 +1776,9 @@ cpu_setmcontext(l, mcp, flags)
|
||||
void
|
||||
cpu_need_resched(struct cpu_info *ci, int flags)
|
||||
{
|
||||
bool immed = (flags & RESCHED_IMMED) != 0;
|
||||
|
||||
if (ci->ci_want_resched && !immed)
|
||||
return;
|
||||
aston(ci->ci_data.cpu_onproc);
|
||||
ci->ci_want_resched = 1;
|
||||
|
||||
if (curlwp != ci->ci_data.cpu_idlelwp)
|
||||
aston(curlwp);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user