(empty log message)
@@ -1732,11 +1732,13 @@ | ||
1732 | 1732 | { |
1733 | 1733 | pid_t pid; |
1734 | 1734 | rcu_read_lock(); |
1735 | +#if (defined(RHEL_MAJOR) && RHEL_MAJOR == 5) || (defined(AX_MAJOR) && AX_MAJOR == 3) | |
1736 | + pid = rcu_dereference(current->parent)->tgid; | |
1737 | +#elif defined(CONFIG_UTRACE) | |
1735 | 1738 | /* |
1736 | 1739 | * RHEL 5.0 kernel does not have RHEL_MAJOR/RHEL_MINOR defined. |
1737 | - * Define them manually when compiling for RHEL 5.0 kernel. | |
1740 | + * Assume RHEL 5.0 if CONFIG_UTRACE is defined. | |
1738 | 1741 | */ |
1739 | -#if (defined(RHEL_MAJOR) && RHEL_MAJOR == 5) || (defined(AX_MAJOR) && AX_MAJOR == 3) | |
1740 | 1742 | pid = rcu_dereference(current->parent)->tgid; |
1741 | 1743 | #else |
1742 | 1744 | pid = rcu_dereference(current->real_parent)->tgid; |