Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef __ASM_MMU_H |
| 3 | #define __ASM_MMU_H |
| 4 | |
Paul Burton | 9791554 | 2015-01-08 12:17:37 +0000 | [diff] [blame] | 5 | #include <linux/atomic.h> |
Paul Burton | 432c6ba | 2016-07-08 11:06:19 +0100 | [diff] [blame] | 6 | #include <linux/spinlock.h> |
| 7 | #include <linux/wait.h> |
Paul Burton | 9791554 | 2015-01-08 12:17:37 +0000 | [diff] [blame] | 8 | |
David Daney | c52d0d3 | 2010-02-18 16:13:04 -0800 | [diff] [blame] | 9 | typedef struct { |
| 10 | unsigned long asid[NR_CPUS]; |
| 11 | void *vdso; |
Paul Burton | 9791554 | 2015-01-08 12:17:37 +0000 | [diff] [blame] | 12 | atomic_t fp_mode_switching; |
Paul Burton | 432c6ba | 2016-07-08 11:06:19 +0100 | [diff] [blame] | 13 | |
| 14 | /* lock to be held whilst modifying fp_bd_emupage_allocmap */ |
| 15 | spinlock_t bd_emupage_lock; |
| 16 | /* bitmap tracking allocation of fp_bd_emupage */ |
| 17 | unsigned long *bd_emupage_allocmap; |
| 18 | /* wait queue for threads requiring an emuframe */ |
| 19 | wait_queue_head_t bd_emupage_queue; |
David Daney | c52d0d3 | 2010-02-18 16:13:04 -0800 | [diff] [blame] | 20 | } mm_context_t; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
| 22 | #endif /* __ASM_MMU_H */ |