Skip to content
Snippets Groups Projects
Select Git revision
  • fff168b028c767ac0497ae2450bb4043fc546b38
  • master default protected
  • android-msm-bullhead-3.10-nougat_kgdb_less_changes
  • android-msm-bullhead-3.10-nougat_kgdb
  • android-msm-bullhead-3.10-nougat_klist
  • android-4.4
  • android-msm-vega-4.4-oreo-daydream
  • android-msm-wahoo-4.4-p-preview-5
  • android-msm-wahoo-4.4-pie
  • android-msm-marlin-3.18-p-preview-5
  • android-msm-marlin-3.18-pie
  • android-msm-wahoo-2018.07-oreo-m2
  • android-msm-wahoo-2018.07-oreo-m4
  • android-msm-wahoo-4.4-p-preview-4
  • android-msm-bullhead-3.10-oreo-m6
  • android-msm-angler-3.10-oreo-m6
  • android-msm-marlin-3.18-p-preview-4
  • android-msm-stargazer-3.18-oreo-wear-dr
  • android-msm-catshark-3.18-oreo-wear-dr
  • android-msm-wahoo-4.4-oreo-m2
  • android-msm-wahoo-4.4-oreo-m4
  • android-daydreamos-8.0.0_r0.5
  • android-8.1.0_r0.92
  • android-8.1.0_r0.91
  • android-daydreamos-8.0.0_r0.4
  • android-p-preview-5_r0.2
  • android-p-preview-5_r0.1
  • android-9.0.0_r0.5
  • android-9.0.0_r0.4
  • android-9.0.0_r0.2
  • android-9.0.0_r0.1
  • android-8.1.0_r0.81
  • android-8.1.0_r0.80
  • android-8.1.0_r0.78
  • android-8.1.0_r0.76
  • android-8.1.0_r0.75
  • android-8.1.0_r0.72
  • android-8.1.0_r0.70
  • android-p-preview-4_r0.2
  • android-p-preview-4_r0.1
  • android-wear-8.0.0_r0.30
41 results

rcutree.c

Blame
  • rcutree.c 79.27 KiB
    /*
     * Read-Copy Update mechanism for mutual exclusion
     *
     * 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.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     *
     * Copyright IBM Corporation, 2008
     *
     * Authors: Dipankar Sarma <dipankar@in.ibm.com>
     *	    Manfred Spraul <manfred@colorfullife.com>
     *	    Paul E. McKenney <paulmck@linux.vnet.ibm.com> Hierarchical version
     *
     * Based on the original work by Paul McKenney <paulmck@us.ibm.com>
     * and inputs from Rusty Russell, Andrea Arcangeli and Andi Kleen.
     *
     * For detailed explanation of Read-Copy Update mechanism see -
     *	Documentation/RCU
     */
    #include <linux/types.h>
    #include <linux/kernel.h>
    #include <linux/init.h>
    #include <linux/spinlock.h>
    #include <linux/smp.h>
    #include <linux/rcupdate.h>
    #include <linux/interrupt.h>
    #include <linux/sched.h>
    #include <linux/nmi.h>
    #include <linux/atomic.h>
    #include <linux/bitops.h>
    #include <linux/export.h>
    #include <linux/completion.h>
    #include <linux/moduleparam.h>
    #include <linux/percpu.h>
    #include <linux/notifier.h>
    #include <linux/cpu.h>
    #include <linux/mutex.h>
    #include <linux/time.h>
    #include <linux/kernel_stat.h>
    #include <linux/wait.h>
    #include <linux/kthread.h>
    #include <linux/prefetch.h>
    #include <linux/delay.h>
    #include <linux/stop_machine.h>
    
    #include "rcutree.h"
    #include <trace/events/rcu.h>
    
    #include "rcu.h"
    
    /* Data structures. */
    
    static struct lock_class_key rcu_node_class[NUM_RCU_LVLS];
    
    #define RCU_STATE_INITIALIZER(structname) { \
    	.level = { &structname##_state.node[0] }, \
    	.levelcnt = { \
    		NUM_RCU_LVL_0,  /* root of hierarchy. */ \
    		NUM_RCU_LVL_1, \
    		NUM_RCU_LVL_2, \