[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-kern
Subject: Re: Introduce curlwp_bind and curlwp_unbind for psref(9)
From: Ryota Ozaki <ozaki-r () netbsd ! org>
Date: 2016-06-28 1:08:04
Message-ID: CAKrYomgmdpeBzanRQOVJ3Y97tUwD_kf3uVvitJeq=Gw81fGHPw () mail ! gmail ! com
[Download RAW message or body]
On Sat, Jun 25, 2016 at 11:56 AM, matthew green <mrg@eterna.com.au> wrote:
>> > Since we already use preempt_disable() to force an lwp to stick to a cpu,
>> > doesn't that solve the problem? If need be, we can enforce nonpreemptable
>> > lwp's don't migrate.
>
> why would we want to disable preemption in code that merely wants
> to run on a particular cpu.
>
> i dno't understand why using the side effect of preempt_disable()
> is better than explicitly stating what is wanted.
Yes. That's why the API is introduced.
ozaki-r
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic