]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/cris/kernel/process.c
sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
[mirror_ubuntu-bionic-kernel.git] / arch / cris / kernel / process.c
CommitLineData
f32bb79c 1/*
1da177e4
LT
2 * linux/arch/cris/kernel/process.c
3 *
4 * Copyright (C) 1995 Linus Torvalds
5 * Copyright (C) 2000-2002 Axis Communications AB
6 *
7 * Authors: Bjorn Wesen (bjornw@axis.com)
8 *
1da177e4
LT
9 */
10
11/*
12 * This file handles the architecture-dependent parts of process handling..
13 */
14
60063497 15#include <linux/atomic.h>
1da177e4 16#include <asm/pgtable.h>
7c0f6ba6 17#include <linux/uaccess.h>
1da177e4
LT
18#include <asm/irq.h>
19#include <linux/module.h>
20#include <linux/spinlock.h>
1da177e4
LT
21#include <linux/init_task.h>
22#include <linux/sched.h>
29930025 23#include <linux/sched/task.h>
1da177e4
LT
24#include <linux/fs.h>
25#include <linux/user.h>
26#include <linux/elfcore.h>
27#include <linux/mqueue.h>
16dcb4bb 28#include <linux/reboot.h>
c633f9e7 29#include <linux/rcupdate.h>
1da177e4
LT
30
31//#define DEBUG
32
7b275523
JN
33extern void default_idle(void);
34
35void (*pm_power_off)(void);
36EXPORT_SYMBOL(pm_power_off);
37
8dc7c5ec 38void arch_cpu_idle(void)
1da177e4 39{
8dc7c5ec 40 default_idle();
1da177e4
LT
41}
42
43void hard_reset_now (void);
44
16dcb4bb 45void machine_restart(char *cmd)
1da177e4
LT
46{
47 hard_reset_now();
48}
49
1da177e4
LT
50/*
51 * Similar to machine_power_off, but don't shut off power. Add code
52 * here to freeze the system for e.g. post-mortem debug purpose when
53 * possible. This halt has nothing to do with the idle halt.
54 */
55
56void machine_halt(void)
57{
58}
59
1da177e4
LT
60/* If or when software power-off is implemented, add code here. */
61
62void machine_power_off(void)
63{
64}
65
1da177e4
LT
66/*
67 * When a process does an "exec", machine state like FPU and debug
68 * registers need to be reset. This is a hook function for that.
69 * Currently we don't have any such state to reset, so this is empty.
70 */
71
72void flush_thread(void)
73{
74}
75
1da177e4
LT
76/* Fill in the fpu structure for a core dump. */
77int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
78{
79 return 0;
80}