diff --git a/drivers/platform/tegra/nvadsp/adsp_console_dbfs.c b/drivers/platform/tegra/nvadsp/adsp_console_dbfs.c index 0708723e..4a23ba65 100644 --- a/drivers/platform/tegra/nvadsp/adsp_console_dbfs.c +++ b/drivers/platform/tegra/nvadsp/adsp_console_dbfs.c @@ -3,7 +3,7 @@ * * adsp mailbox console driver * - * Copyright (C) 2014-2016, NVIDIA Corporation. All rights reserved. + * Copyright (C) 2014-2018, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -30,7 +30,7 @@ #include #include -#include +#include #include "dev.h" #include "adsp_console_ioctl.h" diff --git a/drivers/platform/tegra/nvadsp/adsp_dfs.c b/drivers/platform/tegra/nvadsp/adsp_dfs.c index 85b240bf..7fdb61ad 100644 --- a/drivers/platform/tegra/nvadsp/adsp_dfs.c +++ b/drivers/platform/tegra/nvadsp/adsp_dfs.c @@ -3,7 +3,7 @@ * * adsp dynamic frequency scaling * - * Copyright (C) 2014-2017, NVIDIA Corporation. All rights reserved. + * Copyright (C) 2014-2018, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -21,7 +21,12 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) #include +#else +#include +#endif #include #include "dev.h" @@ -607,7 +612,7 @@ static void dump_stats_table(struct seq_file *s, struct adsp_freq_stats *fstats) for (i = 0; i < fstats->state_num; i++) { seq_printf(s, "%lu %llu\n", (long unsigned int)(adsp_cpu_freq_table[i] / 1000), - cputime64_to_clock_t(fstats->time_in_state[i])); + nsec_to_clock_t(fstats->time_in_state[i])); } mutex_unlock(&policy_mutex); }