/* * Copyright (C) 2014 Imagination Technologies Ltd. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * CPU PM notifiers for saving/restoring general CPU state. */ #include <linux/cpu_pm.h> #include <linux/init.h> #include <asm/dsp.h> #include <asm/fpu.h> #include <asm/mmu_context.h> #include <asm/pm.h> #include <asm/watch.h> /* Used by PM helper macros in asm/pm.h */ struct mips_static_suspend_state mips_static_suspend_state; /** * mips_cpu_save() - Save general CPU state. * Ensures that general CPU context is saved, notably FPU and DSP. */
static int mips_cpu_save(void) { /* Save FPU state */ lose_fpu(1); /* Save DSP state */ save_dsp(current); return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 59 | 100.00% | 2 | 100.00% |
Total | 59 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 57 | 100.00% | 1 | 100.00% |
Total | 57 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 202 | 100.00% | 3 | 100.00% |
Total | 202 | 100.00% | 3 | 100.00% |