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