Skip to content
Snippets Groups Projects
Select Git revision
  • 33b07ba96c6a22bdd4a1132c0b15b25873fc0c26
  • master default protected
  • android-7.1.2_r28_klist
  • oreo-mr1-iot-release
  • sdk-release
  • pie-cts-dev
  • pie-cts-release
  • pie-vts-release
  • nougat-iot-release
  • pie-gsi
  • pie-platform-release
  • pie-r2-release
  • pie-r2-s1-release
  • pie-release
  • pie-dev
  • oreo-m4-s4-release
  • o-mr1-iot-preview-8
  • oreo-m2-s2-release
  • oreo-m2-s1-release
  • oreo-m6-s2-release
  • oreo-m6-s3-release
  • android-o-mr1-iot-release-1.0.4
  • android-9.0.0_r8
  • android-9.0.0_r7
  • android-9.0.0_r6
  • android-9.0.0_r5
  • android-8.1.0_r46
  • android-8.1.0_r45
  • android-n-iot-release-smart-display-r2
  • android-vts-8.1_r5
  • android-cts-8.1_r8
  • android-cts-8.0_r12
  • android-cts-7.1_r20
  • android-cts-7.0_r24
  • android-cts-6.0_r31
  • android-o-mr1-iot-release-1.0.3
  • android-cts-9.0_r1
  • android-8.1.0_r43
  • android-8.1.0_r42
  • android-n-iot-release-smart-display
  • android-p-preview-5
41 results

SystemClock.cpp

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, \