diff options
author | Paul Mackerras <paulus@samba.org> | 2006-02-26 23:41:47 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-26 23:41:47 -0500 |
commit | 2cf82c0256b198ae28c465f2c4d7c12c836ea5ea (patch) | |
tree | 722bd1d117959450633105633c92cc22be8e8d61 | |
parent | f055affb89f587a03f3411c3fd49ef31295c3d48 (diff) |
powerpc: Export variables used in conversions to/from cputime_t
The inline cputime_to_foo and foo_to_cputime conversion functions in
include/asm-powerpc/cputime.h refer to 5 variables, which need to be
exported if those functions are to be usable from modules.
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/time.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 0b34db28916f..4f20a5f15d49 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -99,6 +99,7 @@ unsigned long tb_ticks_per_jiffy; | |||
99 | unsigned long tb_ticks_per_usec = 100; /* sane default */ | 99 | unsigned long tb_ticks_per_usec = 100; /* sane default */ |
100 | EXPORT_SYMBOL(tb_ticks_per_usec); | 100 | EXPORT_SYMBOL(tb_ticks_per_usec); |
101 | unsigned long tb_ticks_per_sec; | 101 | unsigned long tb_ticks_per_sec; |
102 | EXPORT_SYMBOL(tb_ticks_per_sec); /* for cputime_t conversions */ | ||
102 | u64 tb_to_xs; | 103 | u64 tb_to_xs; |
103 | unsigned tb_to_us; | 104 | unsigned tb_to_us; |
104 | 105 | ||
@@ -143,9 +144,13 @@ DEFINE_PER_CPU(unsigned long, last_jiffy); | |||
143 | * These are all stored as 0.64 fixed-point binary fractions. | 144 | * These are all stored as 0.64 fixed-point binary fractions. |
144 | */ | 145 | */ |
145 | u64 __cputime_jiffies_factor; | 146 | u64 __cputime_jiffies_factor; |
147 | EXPORT_SYMBOL(__cputime_jiffies_factor); | ||
146 | u64 __cputime_msec_factor; | 148 | u64 __cputime_msec_factor; |
149 | EXPORT_SYMBOL(__cputime_msec_factor); | ||
147 | u64 __cputime_sec_factor; | 150 | u64 __cputime_sec_factor; |
151 | EXPORT_SYMBOL(__cputime_sec_factor); | ||
148 | u64 __cputime_clockt_factor; | 152 | u64 __cputime_clockt_factor; |
153 | EXPORT_SYMBOL(__cputime_clockt_factor); | ||
149 | 154 | ||
150 | static void calc_cputime_factors(void) | 155 | static void calc_cputime_factors(void) |
151 | { | 156 | { |