Release 4.14 arch/powerpc/kernel/swsusp.c
/*
* Common powerpc suspend code for 32 and 64 bits
*
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
*
* 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.
*/
#include <linux/sched.h>
#include <linux/suspend.h>
#include <asm/current.h>
#include <asm/mmu_context.h>
#include <asm/switch_to.h>
void save_processor_state(void)
{
/*
* flush out all the special registers so we don't need
* to save them in the snapshot
*/
flush_all_to_thread(current);
#ifdef CONFIG_PPC64
hard_irq_disable();
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Johannes Berg | 20 | 95.24% | 2 | 66.67% |
Anton Blanchard | 1 | 4.76% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
void restore_processor_state(void)
{
#ifdef CONFIG_PPC32
switch_mmu_context(current->active_mm, current->active_mm, NULL);
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Johannes Berg | 19 | 76.00% | 1 | 25.00% |
Tang Yuantian | 3 | 12.00% | 1 | 25.00% |
Aneesh Kumar K.V | 2 | 8.00% | 1 | 25.00% |
Benjamin Herrenschmidt | 1 | 4.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Johannes Berg | 49 | 79.03% | 2 | 25.00% |
David Howells | 3 | 4.84% | 1 | 12.50% |
Tang Yuantian | 3 | 4.84% | 1 | 12.50% |
Tobin C Harding | 3 | 4.84% | 1 | 12.50% |
Aneesh Kumar K.V | 2 | 3.23% | 1 | 12.50% |
Benjamin Herrenschmidt | 1 | 1.61% | 1 | 12.50% |
Anton Blanchard | 1 | 1.61% | 1 | 12.50% |
Total | 62 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.