Make sched_getrq() inline (gcc does not optimize it), avoids call.
This commit is contained in:
parent
81525af92d
commit
3de401ae19
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_runq.c,v 1.24 2009/01/18 05:07:51 rmind Exp $ */
|
||||
/* $NetBSD: kern_runq.c,v 1.25 2009/02/17 22:00:14 rmind Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, 2008 Mindaugas Rasiukevicius <rmind at NetBSD org>
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.24 2009/01/18 05:07:51 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.25 2009/02/17 22:00:14 rmind Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -193,7 +193,7 @@ sched_cpuattach(struct cpu_info *ci)
|
|||
* Control of the runqueue.
|
||||
*/
|
||||
|
||||
static void *
|
||||
static inline void *
|
||||
sched_getrq(runqueue_t *ci_rq, const pri_t prio)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue