summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/driver_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index b3333e37..9029366f 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -14,6 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/reboot.h>
17#include <linux/dma-mapping.h> 18#include <linux/dma-mapping.h>
18#include <linux/mm.h> 19#include <linux/mm.h>
19#include <uapi/linux/nvgpu.h> 20#include <uapi/linux/nvgpu.h>
@@ -37,6 +38,11 @@
37 38
38#define EMC3D_DEFAULT_RATIO 750 39#define EMC3D_DEFAULT_RATIO 750
39 40
41void nvgpu_kernel_restart(void *cmd)
42{
43 kernel_restart(cmd);
44}
45
40static void nvgpu_init_vars(struct gk20a *g) 46static void nvgpu_init_vars(struct gk20a *g)
41{ 47{
42 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); 48 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);