Skip to content

Commit

Permalink
x86, bts: turn macro into static inline function
Browse files Browse the repository at this point in the history
Impact: cleanup

Replace a macro with a static inline function.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Markus Metzger authored and Ingo Molnar committed Nov 25, 2008
1 parent 292c669 commit e5e8ca6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/include/asm/ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
#ifndef _ASM_X86_DS_H
#define _ASM_X86_DS_H

#ifdef CONFIG_X86_DS

#include <linux/types.h>
#include <linux/init.h>


#ifdef CONFIG_X86_DS

struct task_struct;

/*
Expand Down Expand Up @@ -232,7 +233,8 @@ extern void ds_free(struct ds_context *context);

#else /* CONFIG_X86_DS */

#define ds_init_intel(config) do {} while (0)
struct cpuinfo_x86;
static inline void __cpuinit ds_init_intel(struct cpuinfo_x86 *ignored) {}

#endif /* CONFIG_X86_DS */
#endif /* _ASM_X86_DS_H */

0 comments on commit e5e8ca6

Please sign in to comment.