Changeset 0cf813d in mainline for kernel/generic/include


Ignore:
Timestamp:
2012-07-16T15:37:11Z (14 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c1da4b
Parents:
057e77f
Message:

rcu: Added new statistics. Changed reclaimers to run callbacks with preemption disabled if too many callbacks are pending in order to avoid exhausting system memory.

Location:
kernel/generic/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/compiler/barrier.h

    r057e77f r0cf813d  
    55#define compiler_barrier() asm volatile ("" ::: "memory")
    66
     7/** Forces the compiler to access (ie load/store) the variable only once. */
    78#define ACCESS_ONCE(var) (*((volatile typeof(var)*)&(var)))
    89
  • kernel/generic/include/synch/rcu.h

    r057e77f r0cf813d  
    7171         */
    7272        rcu_item_t *cur_cbs;
     73        /** Number of callbacks in cur_cbs. */
     74        size_t cur_cbs_cnt;
    7375        /** Callbacks to invoke once the next grace period ends, ie next_cbs_gp.
    7476         * Accessed by the local reclaimer only.
    7577         */
    7678        rcu_item_t *next_cbs;
     79        /** Number of callbacks in next_cbs. */
     80        size_t next_cbs_cnt;
    7781        /** New callbacks are place at the end of this list. */
    7882        rcu_item_t *arriving_cbs;
     
    114118        size_t stat_avg_cbs;
    115119        size_t stat_missed_gps;
     120        size_t stat_missed_gp_in_wait;
     121        size_t stat_max_slice_cbs;
     122        size_t last_arriving_cnt;
    116123} rcu_cpu_data_t;
    117124
Note: See TracChangeset for help on using the changeset viewer.