summaryrefslogtreecommitdiff
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-23 04:00:53 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-23 04:00:53 -0700
commit96560f76816d74df69cd08b289858f41f3ae44de (patch)
tree8240b47ffe963e0978a5b336a9aa66b41ea2e425 /include/linux/cpu.h
parent2bb28892aa6768afee531ba5b1a9a4662362f4f8 (diff)
Use inline function instead of macro.
This means we won't get any warnings about unused variables - they _are_ used in some configurations.
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 5925e83d9794..7130cef0f137 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -74,7 +74,7 @@ int cpu_down(unsigned int cpu);
#define hotcpu_notifier(fn, pri)
/* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */
-#define cpu_is_offline(cpu) 0
+static inline int cpu_is_offline(int cpu) { return 0; }
#endif
#endif /* _LINUX_CPU_H_ */