Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17855
b: refs/heads/master
c: ad2b242
h: refs/heads/master
i:
  17853: 0440ef6
  17851: 2362582
  17847: e8a75c8
  17839: b3b74e6
  17823: 5b9cce9
  17791: 5f7bd12
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Jan 11, 2006
1 parent f97e93e commit ac0799b
Show file tree
Hide file tree
Showing 66 changed files with 264 additions and 407 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4fc7ab1d065a9dd89ed0e74439ef87d4a16e980
refs/heads/master: ad2b2426bb8dce97827182946e33e7f7ff0afbce
4 changes: 2 additions & 2 deletions trunk/Documentation/cpusets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Cpusets extends these two mechanisms as follows:
The implementation of cpusets requires a few, simple hooks
into the rest of the kernel, none in performance critical paths:

- in init/main.c, to initialize the root cpuset at system boot.
- in main/init.c, to initialize the root cpuset at system boot.
- in fork and exit, to attach and detach a task from its cpuset.
- in sched_setaffinity, to mask the requested CPUs by what's
allowed in that tasks cpuset.
Expand All @@ -146,7 +146,7 @@ into the rest of the kernel, none in performance critical paths:
and related changes in both sched.c and arch/ia64/kernel/domain.c
- in the mbind and set_mempolicy system calls, to mask the requested
Memory Nodes by what's allowed in that tasks cpuset.
- in page_alloc.c, to restrict memory to allowed nodes.
- in page_alloc, to restrict memory to allowed nodes.
- in vmscan.c, to restrict page recovery to the current cpuset.

In addition a new file system, of type "cpuset" may be mounted,
Expand Down
6 changes: 3 additions & 3 deletions trunk/Documentation/laptop-mode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ How to conserve battery power using laptop-mode

Document Author: Bart Samwel (bart@samwel.tk)
Date created: January 2, 2004
Last modified: December 06, 2004
Last modified: July 10, 2004

Introduction
------------
Expand Down Expand Up @@ -33,7 +33,7 @@ or anything. Simply install all the files included in this document, and
laptop mode will automatically be started when you're on battery. For
your convenience, a tarball containing an installer can be downloaded at:

http://www.xs4all.nl/~bsamwel/laptop_mode/tools/
http://www.xs4all.nl/~bsamwel/laptop_mode/tools

To configure laptop mode, you need to edit the configuration file, which is
located in /etc/default/laptop-mode on Debian-based systems, or in
Expand Down Expand Up @@ -912,7 +912,7 @@ void usage()
exit(0);
}

int main(int argc, char **argv)
int main(int ac, char **av)
{
int fd;
char *disk = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ P: Paul Mundt
M: lethal@linux-sh.org
P: Kazumoto Kojima
M: kkojima@rr.iij4u.or.jp
L: linuxsh-dev@lists.sourceforge.net
L: linux-sh@m17n.org
W: http://www.linux-sh.org
W: http://www.m17n.org/linux-sh/
W: http://www.rr.iij4u.or.jp/~kkojima/linux-sh4.html
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/i386/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ zlilo: $(BOOTIMAGE)
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi

install:
sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
2 changes: 1 addition & 1 deletion trunk/arch/i386/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void kernel_map_pages(struct page *page, int numpages, int enable)
return;
if (!enable)
mutex_debug_check_no_locks_freed(page_address(page),
numpages * PAGE_SIZE);
page_address(page+numpages));

/* the return value is ignored - the calls cannot fail,
* large pages are disabled at boot time.
Expand Down
20 changes: 10 additions & 10 deletions trunk/arch/parisc/kernel/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <asm/processor.h>
#include <asm/sections.h>

int split_tlb __read_mostly;
int dcache_stride __read_mostly;
int icache_stride __read_mostly;
int split_tlb;
int dcache_stride;
int icache_stride;
EXPORT_SYMBOL(dcache_stride);


Expand All @@ -45,29 +45,29 @@ DEFINE_SPINLOCK(pa_tlb_lock);
EXPORT_SYMBOL(pa_tlb_lock);
#endif

struct pdc_cache_info cache_info __read_mostly;
struct pdc_cache_info cache_info;
#ifndef CONFIG_PA20
static struct pdc_btlb_info btlb_info __read_mostly;
static struct pdc_btlb_info btlb_info;
#endif

#ifdef CONFIG_SMP
void
flush_data_cache(void)
{
on_each_cpu(flush_data_cache_local, NULL, 1, 1);
on_each_cpu((void (*)(void *))flush_data_cache_local, NULL, 1, 1);
}
void
flush_instruction_cache(void)
{
on_each_cpu(flush_instruction_cache_local, NULL, 1, 1);
on_each_cpu((void (*)(void *))flush_instruction_cache_local, NULL, 1, 1);
}
#endif

void
flush_cache_all_local(void)
{
flush_instruction_cache_local(NULL);
flush_data_cache_local(NULL);
flush_instruction_cache_local();
flush_data_cache_local();
}
EXPORT_SYMBOL(flush_cache_all_local);

Expand Down Expand Up @@ -332,7 +332,7 @@ void clear_user_page_asm(void *page, unsigned long vaddr)
}

#define FLUSH_THRESHOLD 0x80000 /* 0.5MB */
int parisc_cache_flush_threshold __read_mostly = FLUSH_THRESHOLD;
int parisc_cache_flush_threshold = FLUSH_THRESHOLD;

void parisc_setup_cache_timing(void)
{
Expand Down
13 changes: 4 additions & 9 deletions trunk/arch/parisc/kernel/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/parisc-device.h>

/* See comments in include/asm-parisc/pci.h */
struct hppa_dma_ops *hppa_dma_ops __read_mostly;
struct hppa_dma_ops *hppa_dma_ops;
EXPORT_SYMBOL(hppa_dma_ops);

static struct device root = {
Expand Down Expand Up @@ -515,13 +515,8 @@ alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path)
(iodc_data[5] << 8) | iodc_data[6];
dev->hpa.name = parisc_pathname(dev);
dev->hpa.start = hpa;
/* This is awkward. The STI spec says that gfx devices may occupy
* 32MB or 64MB. Unfortunately, we don't know how to tell whether
* it's the former or the latter. Assumptions either way can hurt us.
*/
if (hpa == 0xf4000000 || hpa == 0xf8000000) {
dev->hpa.end = hpa + 0x03ffffff;
} else if (hpa == 0xf6000000 || hpa == 0xfa000000) {
if (hpa == 0xf4000000 || hpa == 0xf6000000 ||
hpa == 0xf8000000 || hpa == 0xfa000000) {
dev->hpa.end = hpa + 0x01ffffff;
} else {
dev->hpa.end = hpa + 0xfff;
Expand Down Expand Up @@ -839,7 +834,7 @@ static void print_parisc_device(struct parisc_device *dev)

if (dev->num_addrs) {
int k;
printk(", additional addresses: ");
printk(", additional addresses: ");
for (k = 0; k < dev->num_addrs; k++)
printk("0x%lx ", dev->addr[k]);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static unsigned long pdc_result2[32] __attribute__ ((aligned (8)));

/* Firmware needs to be initially set to narrow to determine the
* actual firmware width. */
int parisc_narrow_firmware __read_mostly = 1;
int parisc_narrow_firmware = 1;
#endif

/* On most currently-supported platforms, IODC I/O calls are 32-bit calls
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/parisc/kernel/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ static struct hp_hardware hp_hardware_list[] __initdata = {
{HPHW_BCPORT, 0x804, 0x0000C, 0x10, "REO I/O BC Merced Port"},
{HPHW_BCPORT, 0x782, 0x0000C, 0x00, "REO I/O BC Ropes Port"},
{HPHW_BCPORT, 0x784, 0x0000C, 0x00, "Pluto I/O BC Ropes Port"},
{HPHW_BRIDGE, 0x05D, 0x0000A, 0x00, "SummitHawk Dino PCI Bridge"},
{HPHW_BRIDGE, 0x680, 0x0000A, 0x00, "Dino PCI Bridge"},
{HPHW_BRIDGE, 0x682, 0x0000A, 0x00, "Cujo PCI Bridge"},
{HPHW_BRIDGE, 0x782, 0x0000A, 0x00, "Elroy PCI Bridge"},
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/inventory.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
#undef DEBUG_PAT

int pdc_type __read_mostly = PDC_TYPE_ILLEGAL;
int pdc_type = PDC_TYPE_ILLEGAL;

void __init setup_pdc(void)
{
Expand Down Expand Up @@ -120,8 +120,8 @@ set_pmem_entry(physmem_range_t *pmem_ptr, unsigned long start,
* pdc info is bad in this case).
*/

if (unlikely( ((start & (PAGE_SIZE - 1)) != 0)
|| ((pages4k & ((1UL << PDC_PAGE_ADJ_SHIFT) - 1)) != 0) )) {
if ( ((start & (PAGE_SIZE - 1)) != 0)
|| ((pages4k & ((1UL << PDC_PAGE_ADJ_SHIFT) - 1)) != 0) ) {

panic("Memory range doesn't align with page size!\n");
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#include <asm/uaccess.h>
#include <asm/tlbflush.h> /* for purge_tlb_*() macros */

static struct proc_dir_entry * proc_gsc_root __read_mostly = NULL;
static struct proc_dir_entry * proc_gsc_root = NULL;
static int pcxl_proc_info(char *buffer, char **start, off_t offset, int length);
static unsigned long pcxl_used_bytes __read_mostly = 0;
static unsigned long pcxl_used_pages __read_mostly = 0;
static unsigned long pcxl_used_bytes = 0;
static unsigned long pcxl_used_pages = 0;

extern unsigned long pcxl_dma_start; /* Start of pcxl dma mapping area */
static spinlock_t pcxl_res_lock;
Expand Down
13 changes: 6 additions & 7 deletions trunk/arch/parisc/kernel/pdc_chassis.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/kernel.h>
#include <linux/reboot.h>
#include <linux/notifier.h>
#include <linux/cache.h>

#include <asm/pdc_chassis.h>
#include <asm/processor.h>
Expand All @@ -39,8 +38,8 @@


#ifdef CONFIG_PDC_CHASSIS
static int pdc_chassis_old __read_mostly = 0;
static unsigned int pdc_chassis_enabled __read_mostly = 1;
static int pdc_chassis_old = 0;
static unsigned int pdc_chassis_enabled = 1;


/**
Expand Down Expand Up @@ -133,7 +132,7 @@ void __init parisc_pdc_chassis_init(void)
{
#ifdef CONFIG_PDC_CHASSIS
int handle = 0;
if (likely(pdc_chassis_enabled)) {
if (pdc_chassis_enabled) {
DPRINTK(KERN_DEBUG "%s: parisc_pdc_chassis_init()\n", __FILE__);

/* Let see if we have something to handle... */
Expand All @@ -143,7 +142,7 @@ void __init parisc_pdc_chassis_init(void)
printk(KERN_INFO "Enabling PDC_PAT chassis codes support.\n");
handle = 1;
}
else if (unlikely(pdc_chassis_old)) {
else if (pdc_chassis_old) {
printk(KERN_INFO "Enabling old style chassis LED panel support.\n");
handle = 1;
}
Expand Down Expand Up @@ -179,7 +178,7 @@ int pdc_chassis_send_status(int message)
/* Maybe we should do that in an other way ? */
int retval = 0;
#ifdef CONFIG_PDC_CHASSIS
if (likely(pdc_chassis_enabled)) {
if (pdc_chassis_enabled) {

DPRINTK(KERN_DEBUG "%s: pdc_chassis_send_status(%d)\n", __FILE__, message);

Expand Down Expand Up @@ -215,7 +214,7 @@ int pdc_chassis_send_status(int message)
}
} else retval = -1;
#else
if (unlikely(pdc_chassis_old)) {
if (pdc_chassis_old) {
switch (message) {
case PDC_CHASSIS_DIRECT_BSTART:
case PDC_CHASSIS_DIRECT_BCOMPLETE:
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ struct rdr_tbl_ent {
uint8_t write_control;
};

static int perf_processor_interface __read_mostly = UNKNOWN_INTF;
static int perf_enabled __read_mostly = 0;
static int perf_processor_interface = UNKNOWN_INTF;
static int perf_enabled = 0;
static spinlock_t perf_lock;
struct parisc_device *cpu_device __read_mostly = NULL;
struct parisc_device *cpu_device = NULL;

/* RDRs to write for PCX-W */
static int perf_rdrs_W[] =
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <asm/uaccess.h>
#include <asm/unwind.h>

static int hlt_counter __read_mostly;
static int hlt_counter;

/*
* Power off function, if any
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/parisc/kernel/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
#include <asm/irq.h> /* for struct irq_region */
#include <asm/parisc-device.h>

struct system_cpuinfo_parisc boot_cpu_data __read_mostly;
struct system_cpuinfo_parisc boot_cpu_data;
EXPORT_SYMBOL(boot_cpu_data);

struct cpuinfo_parisc cpu_data[NR_CPUS] __read_mostly;
struct cpuinfo_parisc cpu_data[NR_CPUS];

/*
** PARISC CPU driver - claim "device" and initialize CPU data structures.
Expand Down Expand Up @@ -378,12 +378,12 @@ show_cpuinfo (struct seq_file *m, void *v)
return 0;
}

static struct parisc_device_id processor_tbl[] __read_mostly = {
static struct parisc_device_id processor_tbl[] = {
{ HPHW_NPROC, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, SVERSION_ANY_ID },
{ 0, }
};

static struct parisc_driver cpu_driver __read_mostly = {
static struct parisc_driver cpu_driver = {
.name = "CPU",
.id_table = processor_tbl,
.probe = processor_probe
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/parisc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
#include <asm/io.h>
#include <asm/setup.h>

char command_line[COMMAND_LINE_SIZE] __read_mostly;
char command_line[COMMAND_LINE_SIZE];

/* Intended for ccio/sba/cpu statistics under /proc/bus/{runway|gsc} */
struct proc_dir_entry * proc_runway_root __read_mostly = NULL;
struct proc_dir_entry * proc_gsc_root __read_mostly = NULL;
struct proc_dir_entry * proc_mckinley_root __read_mostly = NULL;
struct proc_dir_entry * proc_runway_root = NULL;
struct proc_dir_entry * proc_gsc_root = NULL;
struct proc_dir_entry * proc_mckinley_root = NULL;

#if !defined(CONFIG_PA20) && (defined(CONFIG_IOMMU_CCIO) || defined(CONFIG_IOMMU_SBA))
int parisc_bus_is_phys __read_mostly = 1; /* Assume no IOMMU is present */
int parisc_bus_is_phys = 1; /* Assume no IOMMU is present */
EXPORT_SYMBOL(parisc_bus_is_phys);
#endif

Expand Down
16 changes: 9 additions & 7 deletions trunk/arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/atomic.h>
#include <asm/current.h>
#include <asm/delay.h>
#include <asm/tlbflush.h>
#include <asm/pgalloc.h> /* for flush_tlb_all() proto/macro */

#include <asm/io.h>
#include <asm/irq.h> /* for CPU_IRQ_REGION and friends */
Expand All @@ -58,9 +58,9 @@ DEFINE_SPINLOCK(smp_lock);

volatile struct task_struct *smp_init_current_idle_task;

static volatile int cpu_now_booting __read_mostly = 0; /* track which CPU is booting */
static volatile int cpu_now_booting = 0; /* track which CPU is booting */

static int parisc_max_cpus __read_mostly = 1;
static int parisc_max_cpus = 1;

/* online cpus are ones that we've managed to bring up completely
* possible cpus are all valid cpu
Expand All @@ -71,8 +71,8 @@ static int parisc_max_cpus __read_mostly = 1;
* empty in the beginning.
*/

cpumask_t cpu_online_map __read_mostly = CPU_MASK_NONE; /* Bitmap of online CPUs */
cpumask_t cpu_possible_map __read_mostly = CPU_MASK_ALL; /* Bitmap of Present CPUs */
cpumask_t cpu_online_map = CPU_MASK_NONE; /* Bitmap of online CPUs */
cpumask_t cpu_possible_map = CPU_MASK_ALL; /* Bitmap of Present CPUs */

EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL(cpu_possible_map);
Expand Down Expand Up @@ -406,10 +406,12 @@ EXPORT_SYMBOL(smp_call_function);
* as we want to ensure all TLB's flushed before proceeding.
*/

extern void flush_tlb_all_local(void);

void
smp_flush_tlb_all(void)
{
on_each_cpu(flush_tlb_all_local, NULL, 1, 1);
on_each_cpu((void (*)(void *))flush_tlb_all_local, NULL, 1, 1);
}


Expand Down Expand Up @@ -485,7 +487,7 @@ void __init smp_callin(void)
#endif

flush_cache_all_local(); /* start with known state */
flush_tlb_all_local(NULL);
flush_tlb_all_local();

local_irq_enable(); /* Interrupts have been off until now */

Expand Down
Loading

0 comments on commit ac0799b

Please sign in to comment.