mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
Add wrapper header nvgpu/types.h. It checks if build is for Linux kernel and pulls in linux/types.h. Delete also all #includes for linux/types.h which are not strictly necessary, and change the remaining ones to use the new wrapper. JIRA NVGPU-13 Change-Id: I1ddfef0b0b9d840e3e41a62f69c7cb9148d2d5fa Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1453371 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
28 lines
860 B
C
28 lines
860 B
C
/*
|
|
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#include "gk20a/gk20a.h"
|
|
#include "gm20b/ltc_gm20b.h"
|
|
#include "gp10b/ltc_gp10b.h"
|
|
#include "gp106/ltc_gp106.h"
|
|
|
|
void gp106_init_ltc(struct gpu_ops *gops)
|
|
{
|
|
gp10b_init_ltc(gops);
|
|
|
|
/* dGPU does not need the LTC hack */
|
|
gops->ltc.cbc_fix_config = NULL;
|
|
gops->ltc.init_cbc = NULL;
|
|
gops->ltc.init_fs_state = gm20b_ltc_init_fs_state;
|
|
}
|