1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 298ae22e1SMichael Neuling /* 398ae22e1SMichael Neuling * Transactional memory support routines to reclaim and recheckpoint 498ae22e1SMichael Neuling * transactional process state. 598ae22e1SMichael Neuling * 698ae22e1SMichael Neuling * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation. 798ae22e1SMichael Neuling */ 898ae22e1SMichael Neuling 9b75c100eSMichael Neuling #include <uapi/asm/tm.h> 10b75c100eSMichael Neuling 11e4e38121SMichael Neuling #ifndef __ASSEMBLY__ 12e4e38121SMichael Neuling 1398ae22e1SMichael Neuling extern void tm_reclaim(struct thread_struct *thread, 14*eb5c3f1cSCyril Bur uint8_t cause); 15d31626f7SPaul Mackerras extern void tm_reclaim_current(uint8_t cause); 16*eb5c3f1cSCyril Bur extern void tm_recheckpoint(struct thread_struct *thread); 1798ae22e1SMichael Neuling extern void tm_save_sprs(struct thread_struct *thread); 1898ae22e1SMichael Neuling extern void tm_restore_sprs(struct thread_struct *thread); 19e4e38121SMichael Neuling 2054820530SMichael Ellerman extern bool tm_suspend_disabled; 2154820530SMichael Ellerman 22e4e38121SMichael Neuling #endif /* __ASSEMBLY__ */ 23