Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
smp.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * include/asm-s390/smp.h
- *
- * S390 version
- * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
- * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
- * Martin Schwidefsky (schwidefsky@de.ibm.com)
- */
- #ifndef __ASM_SMP_H
- #define __ASM_SMP_H
- #include <linux/config.h>
- #if defined(__KERNEL__) && defined(CONFIG_SMP) && !defined(__ASSEMBLY__)
- #include <asm/lowcore.h>
- /*
- s390 specific smp.c headers
- */
- typedef struct
- {
- int intresting;
- sigp_ccode ccode;
- __u32 status;
- __u16 cpu;
- } sigp_info;
- extern unsigned long cpu_online_map;
- #define NO_PROC_ID 0xFF /* No processor magic marker */
- /*
- * This magic constant controls our willingness to transfer
- * a process across CPUs. Such a transfer incurs misses on the L1
- * cache, and on a P6 or P5 with multiple L2 caches L2 hits. My
- * gut feeling is this will vary by board in value. For a board
- * with separate L2 cache it probably depends also on the RSS, and
- * for a board with shared L2 cache it ought to decay fast as other
- * processes are run.
- */
- #define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
- #define smp_processor_id() (current->processor)
- extern __inline__ int cpu_logical_map(int cpu)
- {
- return cpu;
- }
- extern __inline__ int cpu_number_map(int cpu)
- {
- return cpu;
- }
- extern __inline__ __u16 hard_smp_processor_id(void)
- {
- __u16 cpu_address;
- __asm__ ("stap %0n" : "=m" (cpu_address));
- return cpu_address;
- }
- #define cpu_logical_map(cpu) (cpu)
- #endif
- #endif