aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorGrant Likely <[email protected]>2013-02-10 22:57:21 +0000
committerGrant Likely <[email protected]>2013-02-13 10:09:31 +0000
commitbd69f73f2c81eed9a398708b8c4bb3409ba1b0f9 (patch)
tree0be6f0ee561d13d01b6c44478b693cc60453ff6d /tools/perf/scripts/python/net_dropmonitor.py
parent23ce04c0734e33b1042273b0ed11a8e4f7f988ca (diff)
of: Create function for counting number of phandles in a property
This patch creates of_count_phandle_with_args(), a new function for counting the number of phandle+argument tuples in a given property. This is better than the existing method of parsing each phandle individually until parsing fails which is a horribly slow way to do the count. Tested on ARM using the selftest code. v3: - Rebased on top of selftest code cleanup patch v2: - fix bug where of_parse_phandle_with_args() could behave like _count_. - made of_gpio_named_count() into a static inline regardless of CONFIG_OF_GPIO Tested-by: Andreas Larsson <[email protected]> Signed-off-by: Grant Likely <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions