From 72968c9c15ac2c94dcad036e02aaa4b5a9589898 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 8 Feb 2014 08:24:28 +0000 Subject: [PATCH] scst: Build fix for kernel versions before 2.6.37 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5276 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index 367848d76..0efc57faf 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -186,6 +186,16 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37) +/* + * See also patch "sched: Fix softirq time accounting" (commit ID + * 75e1056f5c57050415b64cb761a3acc35d91f013). + */ +#ifndef in_serving_softirq +#define in_serving_softirq() in_softirq() +#endif +#endif + #ifndef __list_for_each /* ToDo: cleanup when both are the same for all relevant kernels */ #define __list_for_each list_for_each