Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hotplug-cpu.c File Reference
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/cpu.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/firmware.h>
#include <asm/machdep.h>
#include <asm/vdso_datapage.h>
#include <asm/pSeries_reconfig.h>
#include <asm/xics.h>
#include "plpar_wrappers.h"
#include "offline_states.h"

Go to the source code of this file.

Macros

#define MAX_CEDE_LATENCY_LEVELS   4
 
#define CEDE_LATENCY_PARAM_LENGTH   10
 
#define CEDE_LATENCY_PARAM_MAX_LENGTH   (MAX_CEDE_LATENCY_LEVELS * CEDE_LATENCY_PARAM_LENGTH * sizeof(char))
 
#define CEDE_LATENCY_TOKEN   45
 

Functions

 __setup ("cede_offline=", setup_cede_offline)
 
enum cpu_state_vals get_cpu_current_state (int cpu)
 
void set_cpu_current_state (int cpu, enum cpu_state_vals state)
 
enum cpu_state_vals get_preferred_offline_state (int cpu)
 
void set_preferred_offline_state (int cpu, enum cpu_state_vals state)
 
void set_default_offline_state (int cpu)
 
 arch_initcall (pseries_cpu_hotplug_init)
 

Macro Definition Documentation

#define CEDE_LATENCY_PARAM_LENGTH   10

Definition at line 351 of file hotplug-cpu.c.

#define CEDE_LATENCY_PARAM_MAX_LENGTH   (MAX_CEDE_LATENCY_LEVELS * CEDE_LATENCY_PARAM_LENGTH * sizeof(char))

Definition at line 352 of file hotplug-cpu.c.

#define CEDE_LATENCY_TOKEN   45

Definition at line 354 of file hotplug-cpu.c.

#define MAX_CEDE_LATENCY_LEVELS   4

Definition at line 350 of file hotplug-cpu.c.

Function Documentation

__setup ( )
arch_initcall ( pseries_cpu_hotplug_init  )
enum cpu_state_vals get_cpu_current_state ( int  cpu)

Definition at line 68 of file hotplug-cpu.c.

enum cpu_state_vals get_preferred_offline_state ( int  cpu)

Definition at line 78 of file hotplug-cpu.c.

void set_cpu_current_state ( int  cpu,
enum cpu_state_vals  state 
)

Definition at line 73 of file hotplug-cpu.c.

void set_default_offline_state ( int  cpu)

Definition at line 88 of file hotplug-cpu.c.

void set_preferred_offline_state ( int  cpu,
enum cpu_state_vals  state 
)

Definition at line 83 of file hotplug-cpu.c.