Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
processor.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <asm/param.h>
#include <asm/cache.h>
#include <asm/hardware.h>
#include <asm/processor.h>
#include <asm/page.h>
#include <asm/pdc.h>
#include <asm/pdcpat.h>
#include <asm/irq.h>
#include <asm/parisc-device.h>

Go to the source code of this file.

Macros

#define p   ((unsigned long *)&boot_cpu_data.pdc.model)
 

Functions

 EXPORT_SYMBOL (boot_cpu_data)
 
 DEFINE_PER_CPU (struct cpuinfo_parisc, cpu_data)
 
int update_cr16_clocksource (void)
 
void __init collect_boot_cpu_data (void)
 
int __cpuinit init_per_cpu (int cpunum)
 
int show_cpuinfo (struct seq_file *m, void *v)
 
void __init processor_init (void)
 

Variables

struct system_cpuinfo_parisc
boot_cpu_data 
__read_mostly
 

Macro Definition Documentation

unsigned char p   ((unsigned long *)&boot_cpu_data.pdc.model)

Definition at line 44 of file io-defs.h.

Function Documentation

void __init collect_boot_cpu_data ( void  )

collect_boot_cpu_data - Fill the boot_cpu_data structure.

This function collects and stores the generic processor information in the boot_cpu_data structure.

Definition at line 242 of file processor.c.

DEFINE_PER_CPU ( struct cpuinfo_parisc  ,
cpu_data   
)
EXPORT_SYMBOL ( boot_cpu_data  )
int __cpuinit init_per_cpu ( int  cpunum)

init_per_cpu - Handle individual processor initializations. : logical processor number.

This function handles initialization for every CPU in the system:

o Set "default" CPU width for trap handlers

o Enable FP coprocessor REVISIT: this could be done in the "code 22" trap handler. (frowands idea - that way we know which processes need FP registers saved on the interrupt stack.) NEWS FLASH: wide kernels need FP coprocessor enabled to handle formatted printing of lx for example (double divides I think)

o Enable CPU profiling hooks.

Definition at line 302 of file processor.c.

void __init processor_init ( void  )

processor_init - Processor initialization procedure.

Register this driver.

Definition at line 419 of file processor.c.

int show_cpuinfo ( struct seq_file m,
void v 
)

Definition at line 351 of file processor.c.

int update_cr16_clocksource ( void  )

Definition at line 218 of file time.c.

Variable Documentation

Definition at line 45 of file processor.c.