Skip to content

Commit

Permalink
[PATCH] s390: fix ipd handling
Browse files Browse the repository at this point in the history
As pointed out by Paulo Marques <pmarques@grupopie.com> MAX_IPD_TIME is by
a factor of ten too small.  Since this means that we allow ten times more
IPDs in the intended time frame this could result in a cpu check stop of a
physical cpu.

Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Heiko Carstens authored and Linus Torvalds committed May 2, 2006
1 parent 8261aa6 commit 022e4fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/s390/s390mach.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/workqueue.h>
#include <linux/time.h>

#include <asm/lowcore.h>

Expand Down Expand Up @@ -363,7 +364,7 @@ s390_revalidate_registers(struct mci *mci)
}

#define MAX_IPD_COUNT 29
#define MAX_IPD_TIME (5 * 60 * 100 * 1000) /* 5 minutes */
#define MAX_IPD_TIME (5 * 60 * USEC_PER_SEC) /* 5 minutes */

/*
* machine check handler.
Expand Down

0 comments on commit 022e4fc

Please sign in to comment.