Date: Thu, 22 Oct 2015 23:03:24 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289775 - head/sys/dev/ntb/if_ntb Message-ID: <201510222303.t9MN3Onh093981@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Thu Oct 22 23:03:24 2015 New Revision: 289775 URL: https://svnweb.freebsd.org/changeset/base/289775 Log: if_ntb: Use ffsll() now that it is broadly available Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/ntb/if_ntb/if_ntb.c Modified: head/sys/dev/ntb/if_ntb/if_ntb.c ============================================================================== --- head/sys/dev/ntb/if_ntb/if_ntb.c Thu Oct 22 23:03:15 2015 (r289774) +++ head/sys/dev/ntb/if_ntb/if_ntb.c Thu Oct 22 23:03:24 2015 (r289775) @@ -1150,14 +1150,7 @@ ntb_transport_doorbell_callback(void *da vec_mask = ntb_db_vector_mask(nt->ntb, vector); while (vec_mask != 0) { - qp_num = ffsl(vec_mask); - /* i386 doesn't have ffsll(), fake it */ - if (qp_num == 0) { - qp_num = ffsl(vec_mask >> 32); - KASSERT(qp_num != 0, ("ffs")); - qp_num += 32; - } - qp_num--; + qp_num = ffsll(vec_mask) - 1; if (test_bit(qp_num, &db_bits)) { qp = &nt->qp_vec[qp_num];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510222303.t9MN3Onh093981>