eal/ppc: cpu cycle operations for IBM Power
authorChao Zhu <chaozhu@linux.vnet.ibm.com>
Tue, 25 Nov 2014 22:17:07 +0000 (17:17 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 26 Nov 2014 20:50:09 +0000 (21:50 +0100)
commit85997d60b103da0c5927087b6bdcd76590e2bae7
tree55991d4aa7c883441060a6ca8f0418112e7f6010
parentde6fff135e5869e40a46236ac0386323ab8b27c9
eal/ppc: cpu cycle operations for IBM Power

IBM Power architecture doesn't have TSC register to get CPU cycles. This
patch implements the time base register read instead of TSC register of
x86 on IBM Power architecture.

Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h [new file with mode: 0644]