162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Transactional memory support routines to reclaim and recheckpoint 462306a36Sopenharmony_ci * transactional process state. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation. 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <uapi/asm/tm.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef __ASSEMBLY__ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciextern void tm_reclaim(struct thread_struct *thread, 1462306a36Sopenharmony_ci uint8_t cause); 1562306a36Sopenharmony_ciextern void tm_reclaim_current(uint8_t cause); 1662306a36Sopenharmony_ciextern void tm_recheckpoint(struct thread_struct *thread); 1762306a36Sopenharmony_ciextern void tm_save_sprs(struct thread_struct *thread); 1862306a36Sopenharmony_ciextern void tm_restore_sprs(struct thread_struct *thread); 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciextern bool tm_suspend_disabled; 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#endif /* __ASSEMBLY__ */ 23