ihk_os_{read,write}_cpu_register: Add async support

Change-Id: Ia2a2098550e856eeffbb20d8d0e0bcd57b85b6d7
This commit is contained in:
Masamichi Takagi
2020-01-27 09:49:58 +00:00
parent 83bbb87a0f
commit 153d0609de
3 changed files with 5 additions and 1 deletions

View File

@ -3438,6 +3438,9 @@ int __mcctrl_os_read_write_cpu_register(ihk_os_t os, int cpu,
desc->val = resp.val; 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", dprintk("%s: MCCTRL_OS_CPU_%s_REGISTER: reg: 0x%lx, val: 0x%lx\n",
__FUNCTION__, __FUNCTION__,
(op == MCCTRL_OS_CPU_READ_REGISTER ? "READ" : "WRITE"), (op == MCCTRL_OS_CPU_READ_REGISTER ? "READ" : "WRITE"),

2
ihk

Submodule ihk updated: 761248395d...fdd513f41c

View File

@ -248,6 +248,7 @@ struct ihk_os_cpu_register {
unsigned long addr; unsigned long addr;
unsigned long val; unsigned long val;
unsigned long addr_ext; unsigned long addr_ext;
int sync; /* atomic_t in Linux counterpart */
}; };
enum mcctrl_os_cpu_operation { enum mcctrl_os_cpu_operation {