Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Transactional memory support routines to reclaim and recheckpoint |
| 4 | * transactional process state. |
| 5 | * |
| 6 | * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation. |
| 7 | */ |
| 8 | |
Michael Neuling | b75c100 | 2013-05-26 18:30:56 +0000 | [diff] [blame] | 9 | #include <uapi/asm/tm.h> |
| 10 | |
Michael Neuling | e4e3812 | 2014-03-25 10:47:02 +1100 | [diff] [blame] | 11 | #ifndef __ASSEMBLY__ |
| 12 | |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 13 | extern void tm_reclaim(struct thread_struct *thread, |
Cyril Bur | eb5c3f1 | 2017-11-02 14:09:05 +1100 | [diff] [blame] | 14 | uint8_t cause); |
Paul Mackerras | d31626f | 2014-01-13 15:56:29 +1100 | [diff] [blame] | 15 | extern void tm_reclaim_current(uint8_t cause); |
Cyril Bur | eb5c3f1 | 2017-11-02 14:09:05 +1100 | [diff] [blame] | 16 | extern void tm_recheckpoint(struct thread_struct *thread); |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 17 | extern void tm_save_sprs(struct thread_struct *thread); |
| 18 | extern void tm_restore_sprs(struct thread_struct *thread); |
Michael Neuling | e4e3812 | 2014-03-25 10:47:02 +1100 | [diff] [blame] | 19 | |
Michael Ellerman | 5482053 | 2017-10-12 21:17:18 +1100 | [diff] [blame] | 20 | extern bool tm_suspend_disabled; |
| 21 | |
Michael Neuling | e4e3812 | 2014-03-25 10:47:02 +1100 | [diff] [blame] | 22 | #endif /* __ASSEMBLY__ */ |