kernel - Replace kmalloc_cachealign() with kmalloc(... M_CACHEALIGN)
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 25 Jul 2019 17:30:00 +0000 (10:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 25 Jul 2019 17:30:00 +0000 (10:30 -0700)
commit62938642aa61e5a5d4a479d9157cb975b0557a8f
tree7734a0ec905b6b9f39dce6bda5582d9a4b0ef10b
parent907d94caf6a439944b1c76249cf9a473795b48a6
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.
15 files changed:
sys/dev/netif/bce/if_bce.c
sys/dev/netif/bnx/if_bnx.c
sys/dev/netif/emx/if_emx.c
sys/dev/netif/igb/if_igb.c
sys/dev/netif/ix/if_ix.c
sys/dev/netif/jme/if_jme.c
sys/dev/netif/mxge/if_mxge.c
sys/kern/kern_objcache.c
sys/kern/kern_slaballoc.c
sys/net/if.c
sys/net/ipfw/ip_fw2.c
sys/netinet/tcp_subr.c
sys/netinet/udp_usrreq.c
sys/platform/pc64/apic/lapic.c
sys/sys/malloc.h