swsusp.c (da733563be5a9da26fe81d9f007262d00b846e22) swsusp.c (ae3a197e3d0bfe3f4bf1693723e82dc018c096f3)
1/*
2 * Common powerpc suspend code for 32 and 64 bits
3 *
4 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#include <linux/sched.h>
1/*
2 * Common powerpc suspend code for 32 and 64 bits
3 *
4 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#include <linux/sched.h>
13#include <asm/system.h>
14#include <asm/current.h>
15#include <asm/mmu_context.h>
13#include <asm/current.h>
14#include <asm/mmu_context.h>
15#include <asm/switch_to.h>
16
17void save_processor_state(void)
18{
19 /*
20 * flush out all the special registers so we don't need
21 * to save them in the snapshot
22 */
23 flush_fp_to_thread(current);

--- 15 unchanged lines hidden ---
16
17void save_processor_state(void)
18{
19 /*
20 * flush out all the special registers so we don't need
21 * to save them in the snapshot
22 */
23 flush_fp_to_thread(current);

--- 15 unchanged lines hidden ---