commit | 36e574fed5578aeee0ce4c7359bc17cc0b8e0b57 | [log] [tgz] |
---|---|---|
author | Naveen Jain <naveen_jain@ti.com> | Wed Jun 09 07:20:40 2010 -0500 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Jun 18 12:40:29 2010 -0700 |
tree | ef57f0ec43ce68d0f54ae1e8aece0df986f77741 | |
parent | e2a53282859fab0e428a243cbe9ca8d727d9d840 [diff] |
Staging: ti-st: fix protocol counting Older mechanism of counting the number of protocols registered with ST was slow, in-efficient. It used to check the protocol data for NULL for each registration/unregistration. With this change, counting protocols in maintained by a single counter protos_registered. Counting protocols is not just for debug purposes Signed-off-by: Naveen Jain <naveen_jain@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>