eng
competition

Text Practice Mode

C - Linux Kernel (CPU)

created Sep 6th 2014, 04:14 by Zero Cored


10


Rating

74 words
43 completed
00:00
#include <linux/lockdep.h>
#include <trace/events/power.h>
 
#include "smpboot.h"
 
#ifdef CONFIG_SMP
/* Serializes the updates to cpu_online_mask, cpu_present_mask */
static DEFINE_MUTEX(cpu_add_remove_lock);
 
void cpu_maps_update_begin(void)
{
    mutex_lock(&cpu_add_remove_lock);
}
EXPORT_SYMBOL(cpu_notifier_register_begin);
 
void cpu_maps_update_done(void)
{
    mutex_unlock(&cpu_add_remove_lock);
}
EXPORT_SYMBOL(cpu_notifier_register_done);
 
static RAW_NOTIFIER_HEAD(cpu_chain);
 
 

saving score / loading statistics ...