![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * vlock.h - simple voting lock implementation 0004 * 0005 * Created by: Dave Martin, 2012-08-16 0006 * Copyright: (C) 2012-2013 Linaro Limited 0007 */ 0008 0009 #ifndef __VLOCK_H 0010 #define __VLOCK_H 0011 0012 #include <asm/mcpm.h> 0013 0014 /* Offsets and sizes are rounded to a word (4 bytes) */ 0015 #define VLOCK_OWNER_OFFSET 0 0016 #define VLOCK_VOTING_OFFSET 4 0017 #define VLOCK_VOTING_SIZE ((MAX_CPUS_PER_CLUSTER + 3) / 4 * 4) 0018 #define VLOCK_SIZE (VLOCK_VOTING_OFFSET + VLOCK_VOTING_SIZE) 0019 #define VLOCK_OWNER_NONE 0 0020 0021 #endif /* ! __VLOCK_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |