diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2008-11-24 00:15:46 -0500 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2008-11-24 00:15:46 -0500 |
commit | 331faf8928328152a2064ed493f0e58efc3c6c7d (patch) | |
tree | 1206848cbaef5ddc7adf6b7e1b055062c03c10da | |
parent | 01b05e2ef0a8516aababf31a7decd14d07afb49b (diff) | |
download | systemtap-steved-331faf8928328152a2064ed493f0e58efc3c6c7d.tar.gz systemtap-steved-331faf8928328152a2064ed493f0e58efc3c6c7d.tar.xz systemtap-steved-331faf8928328152a2064ed493f0e58efc3c6c7d.zip |
Use for_each_cpu_mask always.
Suggested-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
-rw-r--r-- | runtime/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/runtime.h | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index f940ad38..6fa86a9a 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2008-11-24 Wenji Huang <wenji.huang@oracle.com> + + From Srikar Dronamraju: + * runtime.h: Use for_each_cpu_mask always. + 2008-11-11 Stan Cox <scox@redhat.com> * sduprobes.c: New file. diff --git a/runtime/runtime.h b/runtime/runtime.h index 7507e594..3b3e117d 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -39,15 +39,9 @@ #define STP_OLD_TRANSPORT #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) -#ifndef stp_for_each_cpu -#define stp_for_each_cpu(cpu) for_each_cpu((cpu), cpu_possible_map) -#endif -#else #ifndef stp_for_each_cpu #define stp_for_each_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map) #endif -#endif static void _stp_dbug (const char *func, int line, const char *fmt, ...); void _stp_error (const char *fmt, ...); |