diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2015-12-18 13:36:13 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2015-12-18 13:36:13 +0000 |
commit | 8c734a3b82d9bf124fc1f138f3194c21579200b4 (patch) | |
tree | 5dc2db3160c9ac48d5dbe47d8218644599f00df0 /sys | |
parent | 27514e79a9af647265b01f49f83524702cbc69cb (diff) |
A store to FPA does not need splnet(). The operation is atomic.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/octeon/dev/if_cnmac.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c index e565b369770..dc76de19c2b 100644 --- a/sys/arch/octeon/dev/if_cnmac.c +++ b/sys/arch/octeon/dev/if_cnmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cnmac.c,v 1.36 2015/11/25 14:00:27 visa Exp $ */ +/* $OpenBSD: if_cnmac.c,v 1.37 2015/12/18 13:36:12 visa Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -670,11 +670,8 @@ void octeon_eth_buf_ext_free_m(caddr_t buf, u_int size, void *arg) { uint64_t *work = (void *)arg; - int s = splnet(); cn30xxfpa_buf_put_paddr(octeon_eth_fb_wqe, XKPHYS_TO_PHYS(work)); - - splx(s); } void @@ -682,12 +679,9 @@ octeon_eth_buf_ext_free_ext(caddr_t buf, u_int size, void *arg) { uint64_t *work = (void *)arg; - int s = splnet(); cn30xxfpa_buf_put_paddr(octeon_eth_fb_wqe, XKPHYS_TO_PHYS(work)); cn30xxfpa_buf_put_paddr(octeon_eth_fb_pkt, XKPHYS_TO_PHYS(buf)); - - splx(s); } /* ---- ifnet interfaces */ |