Commit 8d16b764 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Linus Torvalds

[PATCH] hrtimer: export symbols

From: Stephen Hemminger <shemminger@osdl.org>

I want to use the hrtimer's in the netem (Network Emulator) qdisc.  But the
necessary symbols aren't exported for module use.

Also needed by SystemTap.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "Stone, Joshua I" <joshua.i.stone@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 760f1fce
...@@ -456,6 +456,7 @@ hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode) ...@@ -456,6 +456,7 @@ hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(hrtimer_start);
/** /**
* hrtimer_try_to_cancel - try to deactivate a timer * hrtimer_try_to_cancel - try to deactivate a timer
...@@ -484,6 +485,7 @@ int hrtimer_try_to_cancel(struct hrtimer *timer) ...@@ -484,6 +485,7 @@ int hrtimer_try_to_cancel(struct hrtimer *timer)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(hrtimer_try_to_cancel);
/** /**
* hrtimer_cancel - cancel a timer and wait for the handler to finish. * hrtimer_cancel - cancel a timer and wait for the handler to finish.
...@@ -504,6 +506,7 @@ int hrtimer_cancel(struct hrtimer *timer) ...@@ -504,6 +506,7 @@ int hrtimer_cancel(struct hrtimer *timer)
cpu_relax(); cpu_relax();
} }
} }
EXPORT_SYMBOL_GPL(hrtimer_cancel);
/** /**
* hrtimer_get_remaining - get remaining time for the timer * hrtimer_get_remaining - get remaining time for the timer
...@@ -522,6 +525,7 @@ ktime_t hrtimer_get_remaining(const struct hrtimer *timer) ...@@ -522,6 +525,7 @@ ktime_t hrtimer_get_remaining(const struct hrtimer *timer)
return rem; return rem;
} }
EXPORT_SYMBOL_GPL(hrtimer_get_remaining);
#ifdef CONFIG_NO_IDLE_HZ #ifdef CONFIG_NO_IDLE_HZ
/** /**
...@@ -580,6 +584,7 @@ void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, ...@@ -580,6 +584,7 @@ void hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
timer->base = &bases[clock_id]; timer->base = &bases[clock_id];
timer->node.rb_parent = HRTIMER_INACTIVE; timer->node.rb_parent = HRTIMER_INACTIVE;
} }
EXPORT_SYMBOL_GPL(hrtimer_init);
/** /**
* hrtimer_get_res - get the timer resolution for a clock * hrtimer_get_res - get the timer resolution for a clock
...@@ -599,6 +604,7 @@ int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp) ...@@ -599,6 +604,7 @@ int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp)
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(hrtimer_get_res);
/* /*
* Expire the per base hrtimer-queue: * Expire the per base hrtimer-queue:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment