mm: make wait_on_page_writeback() wait for multiple pending writebacks
[linux/fpc-iii.git] / arch / arm / common / vlock.h
blob422429781f87904b7fe26dba8bf0e62b431d0613
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * vlock.h - simple voting lock implementation
5 * Created by: Dave Martin, 2012-08-16
6 * Copyright: (C) 2012-2013 Linaro Limited
7 */
9 #ifndef __VLOCK_H
10 #define __VLOCK_H
12 #include <asm/mcpm.h>
14 /* Offsets and sizes are rounded to a word (4 bytes) */
15 #define VLOCK_OWNER_OFFSET 0
16 #define VLOCK_VOTING_OFFSET 4
17 #define VLOCK_VOTING_SIZE ((MAX_CPUS_PER_CLUSTER + 3) / 4 * 4)
18 #define VLOCK_SIZE (VLOCK_VOTING_OFFSET + VLOCK_VOTING_SIZE)
19 #define VLOCK_OWNER_NONE 0
21 #endif /* ! __VLOCK_H */