cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/include/asm/bL_switcher.h

/*
 * arch/arm/include/asm/bL_switcher.h
 *
 * Created by:  Nicolas Pitre, April 2012
 * Copyright:   (C) 2012-2013  Linaro Limited
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef ASM_BL_SWITCHER_H

#define ASM_BL_SWITCHER_H

#include <linux/compiler.h>
#include <linux/types.h>


typedef void (*bL_switch_completion_handler)(void *cookie);

int bL_switch_request_cb(unsigned int cpu, unsigned int new_cluster_id,
			 bL_switch_completion_handler completer,
			 void *completer_cookie);

static inline int bL_switch_request(unsigned int cpu, unsigned int new_cluster_id) { return bL_switch_request_cb(cpu, new_cluster_id, NULL, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin27100.00%1100.00%
Total27100.00%1100.00%

/* * Register here to be notified about runtime enabling/disabling of * the switcher. * * The notifier chain is called with the switcher activation lock held: * the switcher will not be enabled or disabled during callbacks. * Callbacks must not call bL_switcher_{get,put}_enabled(). */ #define BL_NOTIFY_PRE_ENABLE 0 #define BL_NOTIFY_POST_ENABLE 1 #define BL_NOTIFY_PRE_DISABLE 2 #define BL_NOTIFY_POST_DISABLE 3 #ifdef CONFIG_BL_SWITCHER int bL_switcher_register_notifier(struct notifier_block *nb); int bL_switcher_unregister_notifier(struct notifier_block *nb); /* * Use these functions to temporarily prevent enabling/disabling of * the switcher. * bL_switcher_get_enabled() returns true if the switcher is currently * enabled. Each call to bL_switcher_get_enabled() must be followed * by a call to bL_switcher_put_enabled(). These functions are not * recursive. */ bool bL_switcher_get_enabled(void); void bL_switcher_put_enabled(void); int bL_switcher_trace_trigger(void); int bL_switcher_get_logical_index(u32 mpidr); #else
static inline int bL_switcher_register_notifier(struct notifier_block *nb) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin15100.00%1100.00%
Total15100.00%1100.00%


static inline int bL_switcher_unregister_notifier(struct notifier_block *nb) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin15100.00%1100.00%
Total15100.00%1100.00%


static inline bool bL_switcher_get_enabled(void) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin12100.00%1100.00%
Total12100.00%1100.00%


static inline void bL_switcher_put_enabled(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin8100.00%1100.00%
Total8100.00%1100.00%


static inline int bL_switcher_trace_trigger(void) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin12100.00%1100.00%
Total12100.00%1100.00%


static inline int bL_switcher_get_logical_index(u32 mpidr) { return -EUNATCH; }

Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin14100.00%1100.00%
Total14100.00%1100.00%

#endif /* CONFIG_BL_SWITCHER */ #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Dave P Martin19890.83%571.43%
Nico Pitre209.17%228.57%
Total218100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.