git: kernel - Adjust contention handler

看板DFBSD_commit作者時間15年前 (2010/08/28 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit b68e846fa236b7b7beeb23a84108fb713272440d Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Aug 27 19:39:42 2010 -0700 kernel - Adjust contention handler * Simplify handle_cpu_contention_mask() a little. For vkernels we call pthread_yield(). * Just call cpu_pause() in cpu_spinlock_contested(). Don't do anything fancier, the routine is called as part of the exponential backoff code. Summary of changes: sys/platform/pc32/i386/machdep.c | 4 +--- sys/platform/pc64/x86_64/machdep.c | 7 ++++++- sys/platform/vkernel/i386/cpu_regs.c | 12 +++--------- sys/platform/vkernel64/x86_64/cpu_regs.c | 11 ++++------- 4 files changed, 14 insertions(+), 20 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b68e846fa236b7b7beeb23a84108fb713272440d -- DragonFly BSD source repository
文章代碼(AID): #1CU9zLAo (DFBSD_commit)