Skip to content

Commit

Permalink
[PATCH] stack overflow safe kdump: safe_smp_processor_id(): voyager
Browse files Browse the repository at this point in the history
"safe_smp_processor_id" implementation for i386-Voyager.

Signed-off-by: Fernando Vazquez <fernando@intellilink.co.jp>
Looks-reasonable-to: Andi Kleen <ak@muc.de>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Fernando Vazquez authored and Linus Torvalds committed Oct 1, 2006
1 parent dc2bc76 commit 2654c08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/i386/mach-voyager/voyager_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static void do_boot_cpu(__u8 cpuid);
static void do_quad_bootstrap(void);

int hard_smp_processor_id(void);
int safe_smp_processor_id(void);

/* Inline functions */
static inline void
Expand Down Expand Up @@ -1247,6 +1248,12 @@ hard_smp_processor_id(void)
return 0;
}

int
safe_smp_processor_id(void)
{
return hard_smp_processor_id();
}

/* broadcast a halt to all other CPUs */
void
smp_send_stop(void)
Expand Down

0 comments on commit 2654c08

Please sign in to comment.