qcacmn: Initialize min_delay of hist_stats to high value

As the value of min_delay is initialized to 0,
during the updation of min_delay per-packet,the
new value is compared with 0.This results in the
value of min_delay always becoming 0.Fix this by
initializing min_delay to very high value.

Change-Id: I6dfdd88a44f68d21240c148bd5c591e04fdff92e
CRs-Fixed: 3170996
This commit is contained in:
Debasis Das
2022-04-07 20:55:27 +05:30
committed by Madan Koyyalamudi
parent 67d1b9bf12
commit 4bdcc0d4c5
2 changed files with 16 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -212,5 +213,6 @@ void dp_hist_init(struct cdp_hist_stats *hist_stats,
enum cdp_hist_types hist_type)
{
qdf_mem_zero(hist_stats, sizeof(*hist_stats));
hist_stats->min = INT_MAX;
hist_stats->hist.hist_type = hist_type;
}