1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Transactional memory support routines to reclaim and recheckpoint 4*4882a593Smuzhiyun * transactional process state. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation. 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #include <uapi/asm/tm.h> 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #ifndef __ASSEMBLY__ 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun extern void tm_reclaim(struct thread_struct *thread, 14*4882a593Smuzhiyun uint8_t cause); 15*4882a593Smuzhiyun extern void tm_reclaim_current(uint8_t cause); 16*4882a593Smuzhiyun extern void tm_recheckpoint(struct thread_struct *thread); 17*4882a593Smuzhiyun extern void tm_save_sprs(struct thread_struct *thread); 18*4882a593Smuzhiyun extern void tm_restore_sprs(struct thread_struct *thread); 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun extern bool tm_suspend_disabled; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #endif /* __ASSEMBLY__ */ 23