git: nvmm: Improve nvmm_return_needed() by using nvmm_break_wanted()

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:22 PDT 2021


commit 2b54422ce4d4ae3ffc257cd862f31e7c191b0360
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jun 27 11:54:20 2021 +0800

    nvmm: Improve nvmm_return_needed() by using nvmm_break_wanted()
    
    Use the newly added nvmm_break_wanted() routine to check for pending
    host events, improving nvmm_return_needed().  Just stuff
    nvmm_break_wanted() into nvmm_return_needed() and get rid of
    preempt_needed(), making the code clearer.
    
    Also add __predict_false() macro to help performance a bit.

Summary of changes:
 sys/dev/virtual/nvmm/nvmm_compat.h   | 8 --------
 sys/dev/virtual/nvmm/nvmm_internal.h | 4 ++--
 2 files changed, 2 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2b54422ce4d4ae3ffc257cd862f31e7c191b0360


-- 
DragonFly BSD source repository


More information about the Commits mailing list