kernel-fxtec-pro1x/drivers/parisc
Christoph Lameter f8891e5e1f [PATCH] Light weight event counters
The remaining counters in page_state after the zoned VM counter patches
have been applied are all just for show in /proc/vmstat.  They have no
essential function for the VM.

We use a simple increment of per cpu variables.  In order to avoid the most
severe races we disable preempt.  Preempt does not prevent the race between
an increment and an interrupt handler incrementing the same statistics
counter.  However, that race is exceedingly rare, we may only loose one
increment or so and there is no requirement (at least not in kernel) that
the vm event counters have to be accurate.

In the non preempt case this results in a simple increment for each
counter.  For many architectures this will be reduced by the compiler to a
single instruction.  This single instruction is atomic for i386 and x86_64.
 And therefore even the rare race condition in an interrupt is avoided for
both architectures in most cases.

The patchset also adds an off switch for embedded systems that allows a
building of linux kernels without these counters.

The implementation of these counters is through inline code that hopefully
results in only a single instruction increment instruction being emitted
(i386, x86_64) or in the increment being hidden though instruction
concurrency (EPIC architectures such as ia64 can get that done).

Benefits:
- VM event counter operations usually reduce to a single inline instruction
  on i386 and x86_64.
- No interrupt disable, only preempt disable for the preempt case.
  Preempt disable can also be avoided by moving the counter into a spinlock.
- Handling is similar to zoned VM counters.
- Simple and easily extendable.
- Can be omitted to reduce memory use for embedded use.

References:

RFC http://marc.theaimsgroup.com/?l=linux-kernel&m=113512330605497&w=2
RFC http://marc.theaimsgroup.com/?l=linux-kernel&m=114988082814934&w=2
local_t http://marc.theaimsgroup.com/?l=linux-kernel&m=114991748606690&w=2
V2 http://marc.theaimsgroup.com/?t=115014808400007&r=1&w=2
V3 http://marc.theaimsgroup.com/?l=linux-kernel&m=115024767022346&w=2
V4 http://marc.theaimsgroup.com/?l=linux-kernel&m=115047968808926&w=2

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-30 11:25:36 -07:00
..
asp.c [PARISC] Convert parisc_device to use struct resource for hpa 2005-10-21 22:36:40 -04:00
ccio-dma.c [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
ccio-rm-dma.c [PARISC] Convert parisc_device to use struct resource for hpa 2005-10-21 22:36:40 -04:00
dino.c [PATCH] genirq: rename desc->handler to desc->chip 2006-06-29 10:26:21 -07:00
eisa.c [PATCH] genirq: rename desc->handler to desc->chip 2006-06-29 10:26:21 -07:00
eisa_eeprom.c [PARISC] Add __user annotation to eisa_eeprom.c 2006-01-10 21:51:18 -05:00
eisa_enumerator.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gsc.c [PATCH] genirq: rename desc->handler to desc->chip 2006-06-29 10:26:21 -07:00
gsc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hppb.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
iommu-helpers.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iosapic.c [PATCH] genirq: rename desc->handler to desc->chip 2006-06-29 10:26:21 -07:00
iosapic_private.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PARISC] PDC_CHASSIS is implemented on all machines 2006-06-27 23:28:37 +00:00
lasi.c [PARISC] Add chassis_power_off routine 2006-01-22 20:26:50 -05:00
lba_pci.c [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
led.c [PATCH] Light weight event counters 2006-06-30 11:25:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pdc_stable.c [PARISC] Add os_id_to_string helper 2006-06-27 23:28:43 +00:00
power.c [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
README.dino Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sba_iommu.c [PARISC] Test ioc_needs_fdc variable instead of open coding 2006-06-27 23:28:35 +00:00
superio.c [PATCH] genirq: rename desc->handler to desc->chip 2006-06-29 10:26:21 -07:00
wax.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00

/*
** HP VISUALIZE Workstation PCI Bus Defect
**
** "HP has discovered a potential system defect that can affect
** the behavior of five models of HP VISUALIZE workstations when
** equipped with third-party or customer-installed PCI I/O expansion
** cards. The defect is limited to the HP C180, C160, C160L, B160L,
** and B132L VISUALIZE workstations, and will only be encountered
** when data is transmitted through PCI I/O expansion cards on the
** PCI bus. HP-supplied graphics cards that utilize the PCI bus are
** not affected."
**
** REVISIT: "go/pci_defect" link below is stale.
**	HP Internal can use <http://hpfcdma.fc.hp.com:80/Dino/>
**
**	Product		First Good Serial Number
**  C200/C240 (US)	US67350000
**B132L+/B180 (US)	US67390000
**   C200 (Europe)	3713G01000
**  B180L (Europe)	3720G01000
**
** Note that many boards were fixed/replaced under a free replacement
** program. Assume a machine is only "suspect" until proven otherwise.
**
** "The pci_check program will also be available as application
**  patch PHSS_12295"
*/