aboutsummaryrefslogtreecommitdiff
path: root/core/hmi.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-05-28 11:17:20 +0530
committerStewart Smith <stewart@linux.ibm.com>2019-06-03 10:28:57 +1000
commit66d0ad68687bb12f7fb4301652f434f886998bdf (patch)
tree8e125fe5325c147469068a2dea0b8cf5e96d1056 /core/hmi.c
parentec9f67bdaedcbfb5836677430da3738c3a3eaa84 (diff)
downloadskiboot-66d0ad68687bb12f7fb4301652f434f886998bdf.zip
skiboot-66d0ad68687bb12f7fb4301652f434f886998bdf.tar.gz
skiboot-66d0ad68687bb12f7fb4301652f434f886998bdf.tar.bz2
opal-msg: Pass parameter size to _opal_queue_msg()
Currently _opal_queue_msg() takes number of parameters. So far this was fine as opal_queue_msg() was supporting only fixed number of parameters (8 * 8 bytes). Soon we are going to introduce variable size parameter. Hence num_params -> params_size. Cc: Jeremy Kerr <jk@ozlabs.org> Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Cc: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Acked-by Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core/hmi.c')
-rw-r--r--core/hmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/hmi.c b/core/hmi.c
index d97f3fc..709f16b 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -288,7 +288,7 @@ static int setup_scom_addresses(void)
static int queue_hmi_event(struct OpalHMIEvent *hmi_evt, int recover, uint64_t *out_flags)
{
- size_t num_params;
+ size_t size;
/* Don't queue up event if recover == -1 */
if (recover == -1)
@@ -307,13 +307,13 @@ static int queue_hmi_event(struct OpalHMIEvent *hmi_evt, int recover, uint64_t *
* num_params divide the struct size by 8 bytes to get exact
* num_params value.
*/
- num_params = ALIGN_UP(sizeof(*hmi_evt), sizeof(u64)) / sizeof(u64);
+ size = ALIGN_UP(sizeof(*hmi_evt), sizeof(u64));
*out_flags |= OPAL_HMI_FLAGS_NEW_EVENT;
/* queue up for delivery to host. */
return _opal_queue_msg(OPAL_MSG_HMI_EVT, NULL, NULL,
- num_params, (uint64_t *)hmi_evt);
+ size, hmi_evt);
}
static int read_core_fir(uint32_t chip_id, uint32_t core_id, uint64_t *core_fir)