diag: Prevent unnecessary data ready counter update
The patch fixes unnecessary data ready counter update by adding proper checks. CRs-Fixed: 2180045 Change-Id: Iff34a9c6203324cd07964d69a1f525325b3a011b Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
This commit is contained in:
parent
29ab15b994
commit
26f01d728e
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ void diag_update_md_clients(unsigned int type)
|
|||
if (driver->client_map[j].pid != 0 &&
|
||||
driver->client_map[j].pid ==
|
||||
driver->md_session_map[i]->pid) {
|
||||
if (!(driver->data_ready[i] & type)) {
|
||||
if (!(driver->data_ready[j] & type)) {
|
||||
driver->data_ready[j] |= type;
|
||||
atomic_inc(
|
||||
&driver->data_ready_notif[j]);
|
||||
|
|
Loading…
Add table
Reference in a new issue