Linux debugging

Check our new training course

Linux debugging, tracing, profiling & perf. analysis

Check our new training course
with Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

 * Copyright (c) 2015 Wind River Systems, Inc.
 * SPDX-License-Identifier: Apache-2.0

 * @file common target reboot functionality
 * @details See misc/Kconfig and the reboot help for details.

#include <kernel.h>
#include <drivers/system_timer.h>
#include <misc/printk.h>
#include <misc/reboot.h>

extern void sys_arch_reboot(int type);

void sys_reboot(int type)


	/* should never get here */
	printk("Failed to reboot: spinning endlessly...\n");
	for (;;) {