diff options
author | Will Deacon <[email protected]> | 2024-09-12 13:44:03 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-09-12 13:44:03 +0100 |
commit | 75078ba2b38a38d94017bd334f71aaed205e30a4 (patch) | |
tree | ba712404a7e4d6d6859315a47441f0e25a1e473b /arch/arm64/include/asm/processor.h | |
parent | 2ef52ca02cfb1d13dbdfb96878fabe3a420b3da7 (diff) | |
parent | 3e9e67e129434fdeae905a5b60648d10126c4a8d (diff) |
Merge branch 'for-next/timers' into for-next/core
* for-next/timers:
arm64: Implement prctl(PR_{G,S}ET_TSC)
Diffstat (limited to 'arch/arm64/include/asm/processor.h')
-rw-r--r-- | arch/arm64/include/asm/processor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index e6376f979273..1438424f0064 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -403,5 +403,10 @@ long get_tagged_addr_ctrl(struct task_struct *task); #define GET_TAGGED_ADDR_CTRL() get_tagged_addr_ctrl(current) #endif +int get_tsc_mode(unsigned long adr); +int set_tsc_mode(unsigned int val); +#define GET_TSC_CTL(adr) get_tsc_mode((adr)) +#define SET_TSC_CTL(val) set_tsc_mode((val)) + #endif /* __ASSEMBLY__ */ #endif /* __ASM_PROCESSOR_H */ |