Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] s390: fix ipd handling

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>

authored by

Heiko Carstens and committed by
Linus Torvalds
022e4fc0 8261aa60

+2 -1
+2 -1
drivers/s390/s390mach.c
··· 13 13 #include <linux/sched.h> 14 14 #include <linux/errno.h> 15 15 #include <linux/workqueue.h> 16 + #include <linux/time.h> 16 17 17 18 #include <asm/lowcore.h> 18 19 ··· 364 363 } 365 364 366 365 #define MAX_IPD_COUNT 29 367 - #define MAX_IPD_TIME (5 * 60 * 100 * 1000) /* 5 minutes */ 366 + #define MAX_IPD_TIME (5 * 60 * USEC_PER_SEC) /* 5 minutes */ 368 367 369 368 /* 370 369 * machine check handler.