All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/5] hard_smp_processor_id overhaul
@ 2007-03-01  7:16 Fernando Luis Vázquez Cao
  2007-03-01 14:06 ` Benjamin LaHaise
  2007-03-02  7:23 ` [Fastboot] [PATCH RFC 0/5] hard_smp_processor_id overhaul Horms
  0 siblings, 2 replies; 7+ messages in thread
From: Fernando Luis Vázquez Cao @ 2007-03-01  7:16 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: fastboot, ebiederm, ak, akpm, judith

With the advent of kdump, the assumption that the boot CPU when running
an UP kernel is always the CPU with a hardware ID of 0 (usually referred
to as BSP on some architectures) does not hold true anymore. The reason
being that the dump capture kernel boots on the crashed CPU (the CPU
that invoked crash_kexec).

As a consequence, the hardcoding of hard_smp_processor_id() to 0 on UP
systems (see "linux/smp.h") is not correct.

This patch-set does the following:

1- Remove hardcoding of hard_smp_processor_id on UP systems.

2- Ask the hardware when possible to obtain the hardware processor id on
i386, x86_64, and ia64, independently of whether CONFIG_SMP is set or
not.

3- Move definition of hard_smp_processor_id for the UP case to asm/smp.h
on alpha, m32r, powerpc, s390, sparc, sparc64, and um architectures. I
guess that hardware features could be used to implement
hard_smp_processor_id even in the UP case, but since I am not an expert
in this architectures I just move the definition.

The patches have been tested on i386, x86_64, and ia64.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-02  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01  7:16 [PATCH RFC 0/5] hard_smp_processor_id overhaul Fernando Luis Vázquez Cao
2007-03-01 14:06 ` Benjamin LaHaise
2007-03-02  3:10   ` Fernando Luis Vázquez Cao
2007-03-02  4:14   ` [Fastboot] " Vivek Goyal
2007-03-02  8:06     ` Fernando Luis Vázquez Cao
2007-03-02  8:16       ` [PATCH] hard_smp_processor_id definition for UP systems without APIC (i386) Fernando Luis Vázquez Cao
2007-03-02  7:23 ` [Fastboot] [PATCH RFC 0/5] hard_smp_processor_id overhaul Horms

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.