-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interconnect: Move internal structs into a separate file
Move the interconnect framework internal structs into a separate file, so that it can be included and used by ftrace code. This will allow us to expose some more useful information in the traces. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
- Loading branch information
Georgi Djakov
committed
Dec 16, 2019
1 parent
ad3703a
commit dd018a9
Showing
2 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Interconnect framework internal structs | ||
* | ||
* Copyright (c) 2019, Linaro Ltd. | ||
* Author: Georgi Djakov <georgi.djakov@linaro.org> | ||
*/ | ||
|
||
#ifndef __DRIVERS_INTERCONNECT_INTERNAL_H | ||
#define __DRIVERS_INTERCONNECT_INTERNAL_H | ||
|
||
/** | ||
* struct icc_req - constraints that are attached to each node | ||
* @req_node: entry in list of requests for the particular @node | ||
* @node: the interconnect node to which this constraint applies | ||
* @dev: reference to the device that sets the constraints | ||
* @tag: path tag (optional) | ||
* @avg_bw: an integer describing the average bandwidth in kBps | ||
* @peak_bw: an integer describing the peak bandwidth in kBps | ||
*/ | ||
struct icc_req { | ||
struct hlist_node req_node; | ||
struct icc_node *node; | ||
struct device *dev; | ||
u32 tag; | ||
u32 avg_bw; | ||
u32 peak_bw; | ||
}; | ||
|
||
/** | ||
* struct icc_path - interconnect path structure | ||
* @num_nodes: number of hops (nodes) | ||
* @reqs: array of the requests applicable to this path of nodes | ||
*/ | ||
struct icc_path { | ||
size_t num_nodes; | ||
struct icc_req reqs[]; | ||
}; | ||
|
||
#endif |