aboutsummaryrefslogtreecommitdiff
path: root/hw/prd.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-08-31 18:06:19 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-01 14:11:36 +1000
commitd8b0ddeda00c023083b06058806c3306e1d124dc (patch)
treeedfc1c2a9b11c872862efa727e592c0dbce8f0ec /hw/prd.c
parent591eb07e4f40044034de26179f0567f7529ff7fa (diff)
downloadskiboot-d8b0ddeda00c023083b06058806c3306e1d124dc.zip
skiboot-d8b0ddeda00c023083b06058806c3306e1d124dc.tar.gz
skiboot-d8b0ddeda00c023083b06058806c3306e1d124dc.tar.bz2
Rename send_pending_events() to send_next_pending_event()
It only sends one event, so this name is more accurate. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'hw/prd.c')
-rw-r--r--hw/prd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/prd.c b/hw/prd.c
index b4ed198..27b8ad8 100644
--- a/hw/prd.c
+++ b/hw/prd.c
@@ -80,7 +80,7 @@ static int queue_prd_msg_nop(struct opal_prd_msg *msg,
static int (*queue_prd_msg)(struct opal_prd_msg *msg,
void (*consumed)(void *data)) = queue_prd_msg_nop;
-static void send_pending_events(void);
+static void send_next_pending_event(void);
static void prd_msg_consumed(void *data)
{
@@ -120,7 +120,7 @@ static void prd_msg_consumed(void *data)
if (event)
events[proc] &= ~event;
prd_msg_inuse = false;
- send_pending_events();
+ send_next_pending_event();
unlock(&events_lock);
}
@@ -145,7 +145,7 @@ static int populate_ipoll_msg(struct opal_prd_msg *msg, uint32_t proc)
return 0;
}
-static void send_pending_events(void)
+static void send_next_pending_event(void)
{
struct proc_chip *chip;
uint32_t proc;
@@ -191,7 +191,7 @@ static void __prd_event(uint32_t proc, uint8_t event)
{
events[proc] |= event;
if (!prd_msg_inuse)
- send_pending_events();
+ send_next_pending_event();
}
static void prd_event(uint32_t proc, uint8_t event)
@@ -294,7 +294,7 @@ static int prd_msg_handle_init(struct opal_prd_msg *msg)
lock(&events_lock);
prd_active = true;
if (!prd_msg_inuse)
- send_pending_events();
+ send_next_pending_event();
unlock(&events_lock);
return OPAL_SUCCESS;