ihk_os_{read,write}_cpu_register: Add async support
Change-Id: Ia2a2098550e856eeffbb20d8d0e0bcd57b85b6d7
This commit is contained in:
@ -3438,6 +3438,9 @@ int __mcctrl_os_read_write_cpu_register(ihk_os_t os, int cpu,
|
||||
desc->val = resp.val;
|
||||
}
|
||||
|
||||
/* Notify caller (for future async implementation) */
|
||||
atomic_set(&desc->sync, 1);
|
||||
|
||||
dprintk("%s: MCCTRL_OS_CPU_%s_REGISTER: reg: 0x%lx, val: 0x%lx\n",
|
||||
__FUNCTION__,
|
||||
(op == MCCTRL_OS_CPU_READ_REGISTER ? "READ" : "WRITE"),
|
||||
|
||||
2
ihk
2
ihk
Submodule ihk updated: 761248395d...fdd513f41c
@ -248,6 +248,7 @@ struct ihk_os_cpu_register {
|
||||
unsigned long addr;
|
||||
unsigned long val;
|
||||
unsigned long addr_ext;
|
||||
int sync; /* atomic_t in Linux counterpart */
|
||||
};
|
||||
|
||||
enum mcctrl_os_cpu_operation {
|
||||
|
||||
Reference in New Issue
Block a user