speedo-tegra210.c (6c37cb9fa67650c51b3a70c53202be31730d7e29) speedo-tegra210.c (b9ce9b0f83b536a4ac7de7567a265d28d13e5bea)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved.
4 */
5
6#include <linux/device.h>
7#include <linux/kernel.h>
8#include <linux/bug.h>

--- 80 unchanged lines hidden (view full) ---

89 }
90}
91
92static int get_process_id(int value, const u32 *speedos, unsigned int num)
93{
94 unsigned int i;
95
96 for (i = 0; i < num; i++)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved.
4 */
5
6#include <linux/device.h>
7#include <linux/kernel.h>
8#include <linux/bug.h>

--- 80 unchanged lines hidden (view full) ---

89 }
90}
91
92static int get_process_id(int value, const u32 *speedos, unsigned int num)
93{
94 unsigned int i;
95
96 for (i = 0; i < num; i++)
97 if (value < speedos[num])
97 if (value < speedos[i])
98 return i;
99
100 return -EINVAL;
101}
102
103void __init tegra210_init_speedo_data(struct tegra_sku_info *sku_info)
104{
105 int cpu_speedo[3], soc_speedo[3];

--- 64 unchanged lines hidden ---
98 return i;
99
100 return -EINVAL;
101}
102
103void __init tegra210_init_speedo_data(struct tegra_sku_info *sku_info)
104{
105 int cpu_speedo[3], soc_speedo[3];

--- 64 unchanged lines hidden ---