commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
22 lines
538 B
C
22 lines
538 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* vlock.h - simple voting lock implementation
|
|
*
|
|
* Created by: Dave Martin, 2012-08-16
|
|
* Copyright: (C) 2012-2013 Linaro Limited
|
|
*/
|
|
|
|
#ifndef __VLOCK_H
|
|
#define __VLOCK_H
|
|
|
|
#include <asm/mcpm.h>
|
|
|
|
/* Offsets and sizes are rounded to a word (4 bytes) */
|
|
#define VLOCK_OWNER_OFFSET 0
|
|
#define VLOCK_VOTING_OFFSET 4
|
|
#define VLOCK_VOTING_SIZE ((MAX_CPUS_PER_CLUSTER + 3) / 4 * 4)
|
|
#define VLOCK_SIZE (VLOCK_VOTING_OFFSET + VLOCK_VOTING_SIZE)
|
|
#define VLOCK_OWNER_NONE 0
|
|
|
|
#endif /* ! __VLOCK_H */
|