]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Cavium, Inc
5 #ifndef _RTE_PAUSE_PPC64_H_
6 #define _RTE_PAUSE_PPC64_H_
12 #include "rte_atomic.h"
14 #include "generic/rte_pause.h"
16 static inline void rte_pause(void)
18 /* Set hardware multi-threading low priority */
19 asm volatile("or 1,1,1");
20 /* Set hardware multi-threading medium priority */
21 asm volatile("or 2,2,2");
22 rte_compiler_barrier();
29 #endif /* _RTE_PAUSE_PPC64_H_ */