Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72f2215d authored by Chris Lew's avatar Chris Lew
Browse files

qrtr: Rename qrtr_all_nodes to qrtr_all_epts



The node list only respresents the adjacent nodes in the system. Rename
the list to qrtr_all_epts to better describe the list contents.

Change-Id: I168ca597d5b9b30d6c064c2a56b6e8b2dffa387b
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent a98b7115
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -106,8 +106,8 @@ static unsigned int qrtr_local_nid = -1;
/* for node ids */
static RADIX_TREE(qrtr_nodes, GFP_KERNEL);
/* broadcast list */
static LIST_HEAD(qrtr_all_nodes);
/* lock for qrtr_nodes, qrtr_all_nodes and node reference */
static LIST_HEAD(qrtr_all_epts);
/* lock for qrtr_nodes, qrtr_all_epts and node reference */
static DEFINE_MUTEX(qrtr_node_lock);

/* local port allocation management */
@@ -446,7 +446,7 @@ int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid)
	qrtr_node_assign(node, nid);

	mutex_lock(&qrtr_node_lock);
	list_add(&node->item, &qrtr_all_nodes);
	list_add(&node->item, &qrtr_all_epts);
	mutex_unlock(&qrtr_node_lock);
	ep->node = node;

@@ -712,7 +712,7 @@ static int qrtr_bcast_enqueue(struct qrtr_node *node, struct sk_buff *skb,
	struct sk_buff *skbn;

	mutex_lock(&qrtr_node_lock);
	list_for_each_entry(node, &qrtr_all_nodes, item) {
	list_for_each_entry(node, &qrtr_all_epts, item) {
		skbn = skb_clone(skb, GFP_KERNEL);
		if (!skbn)
			break;