cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Johannes Berg2095.24%266.67%
Anton Blanchard14.76%133.33%
Total21100.00%3100.00%


void restore_processor_state(void) { #ifdef CONFIG_PPC32 switch_mmu_context(current->active_mm, current->active_mm, NULL); #endif }

Contributors

PersonTokensPropCommitsCommitProp
Johannes Berg1976.00%125.00%
Tang Yuantian312.00%125.00%
Aneesh Kumar K.V28.00%125.00%
Benjamin Herrenschmidt14.00%125.00%
Total25100.00%4100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Johannes Berg4979.03%225.00%
David Howells34.84%112.50%
Tang Yuantian34.84%112.50%
Tobin C Harding34.84%112.50%
Aneesh Kumar K.V23.23%112.50%
Benjamin Herrenschmidt11.61%112.50%
Anton Blanchard11.61%112.50%
Total62100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.