git: kernel - Replace kmalloc_cachealign() with kmalloc(... M_CACHEALIGN)

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jul 25 10:33:39 PDT 2019


commit 62938642aa61e5a5d4a479d9157cb975b0557a8f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jul 25 10:30:00 2019 -0700

    kernel - Replace kmalloc_cachealign() with kmalloc(... M_CACHEALIGN)
    
    * Add M_CACHEALIGN, which ensures that the result is aligned to
      a cache line.
    
    * Remove kmalloc_cachealign(), replacing all uses with kmalloc
      using M_CACHEALIGN.

Summary of changes:
 sys/dev/netif/bce/if_bce.c     | 24 ++++++++--------
 sys/dev/netif/bnx/if_bnx.c     | 14 ++++++----
 sys/dev/netif/emx/if_emx.c     |  6 ++--
 sys/dev/netif/igb/if_igb.c     | 18 ++++++------
 sys/dev/netif/ix/if_ix.c       | 18 ++++++------
 sys/dev/netif/jme/if_jme.c     |  8 +++---
 sys/dev/netif/mxge/if_mxge.c   |  8 ++++--
 sys/kern/kern_objcache.c       |  8 +++---
 sys/kern/kern_slaballoc.c      | 62 +++++++++++++++++-------------------------
 sys/net/if.c                   | 22 +++++++++------
 sys/net/ipfw/ip_fw2.c          |  4 +--
 sys/netinet/tcp_subr.c         | 10 ++++---
 sys/netinet/udp_usrreq.c       |  4 +--
 sys/platform/pc64/apic/lapic.c |  7 +++--
 sys/sys/malloc.h               |  3 +-
 15 files changed, 110 insertions(+), 106 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/62938642aa61e5a5d4a479d9157cb975b0557a8f


-- 
DragonFly BSD source repository


More information about the Commits mailing list