aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/mmtimer.c2
-rw-r--r--include/linux/posix-timers.h2
-rw-r--r--kernel/posix-cpu-timers.c4
-rw-r--r--kernel/posix-timers.c15
4 files changed, 12 insertions, 11 deletions
diff --git a/drivers/char/mmtimer.c b/drivers/char/mmtimer.c
index ff41eb3eec92..33dc2298af73 100644
--- a/drivers/char/mmtimer.c
+++ b/drivers/char/mmtimer.c
@@ -840,7 +840,7 @@ static int __init mmtimer_init(void)
840 } 840 }
841 841
842 sgi_clock_period = NSEC_PER_SEC / sn_rtc_cycles_per_second; 842 sgi_clock_period = NSEC_PER_SEC / sn_rtc_cycles_per_second;
843 register_posix_clock(CLOCK_SGI_CYCLE, &sgi_clock); 843 posix_timers_register_clock(CLOCK_SGI_CYCLE, &sgi_clock);
844 844
845 printk(KERN_INFO "%s: v%s, %ld MHz\n", MMTIMER_DESC, MMTIMER_VERSION, 845 printk(KERN_INFO "%s: v%s, %ld MHz\n", MMTIMER_DESC, MMTIMER_VERSION,
846 sn_rtc_cycles_per_second/(unsigned long)1E6); 846 sn_rtc_cycles_per_second/(unsigned long)1E6);
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h
index 88b9256169f8..9d6ffe2c92e5 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -101,7 +101,7 @@ struct k_clock {
101 101
102extern struct k_clock clock_posix_cpu; 102extern struct k_clock clock_posix_cpu;
103 103
104void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock); 104void posix_timers_register_clock(const clockid_t clock_id, struct k_clock *new_clock);
105 105
106/* function to call to trigger timer event */ 106/* function to call to trigger timer event */
107int posix_timer_event(struct k_itimer *timr, int si_private); 107int posix_timer_event(struct k_itimer *timr, int si_private);
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
index 609e187f43e7..67fea9d25d55 100644
--- a/kernel/posix-cpu-timers.c
+++ b/kernel/posix-cpu-timers.c
@@ -1618,8 +1618,8 @@ static __init int init_posix_cpu_timers(void)
1618 }; 1618 };
1619 struct timespec ts; 1619 struct timespec ts;
1620 1620
1621 register_posix_clock(CLOCK_PROCESS_CPUTIME_ID, &process); 1621 posix_timers_register_clock(CLOCK_PROCESS_CPUTIME_ID, &process);
1622 register_posix_clock(CLOCK_THREAD_CPUTIME_ID, &thread); 1622 posix_timers_register_clock(CLOCK_THREAD_CPUTIME_ID, &thread);
1623 1623
1624 cputime_to_timespec(cputime_one_jiffy, &ts); 1624 cputime_to_timespec(cputime_one_jiffy, &ts);
1625 onecputick = ts.tv_nsec; 1625 onecputick = ts.tv_nsec;
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index df629d853a81..af936fd37140 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -253,11 +253,11 @@ static __init int init_posix_timers(void)
253 .clock_get = posix_get_monotonic_coarse, 253 .clock_get = posix_get_monotonic_coarse,
254 }; 254 };
255 255
256 register_posix_clock(CLOCK_REALTIME, &clock_realtime); 256 posix_timers_register_clock(CLOCK_REALTIME, &clock_realtime);
257 register_posix_clock(CLOCK_MONOTONIC, &clock_monotonic); 257 posix_timers_register_clock(CLOCK_MONOTONIC, &clock_monotonic);
258 register_posix_clock(CLOCK_MONOTONIC_RAW, &clock_monotonic_raw); 258 posix_timers_register_clock(CLOCK_MONOTONIC_RAW, &clock_monotonic_raw);
259 register_posix_clock(CLOCK_REALTIME_COARSE, &clock_realtime_coarse); 259 posix_timers_register_clock(CLOCK_REALTIME_COARSE, &clock_realtime_coarse);
260 register_posix_clock(CLOCK_MONOTONIC_COARSE, &clock_monotonic_coarse); 260 posix_timers_register_clock(CLOCK_MONOTONIC_COARSE, &clock_monotonic_coarse);
261 261
262 posix_timers_cache = kmem_cache_create("posix_timers_cache", 262 posix_timers_cache = kmem_cache_create("posix_timers_cache",
263 sizeof (struct k_itimer), 0, SLAB_PANIC, 263 sizeof (struct k_itimer), 0, SLAB_PANIC,
@@ -433,7 +433,8 @@ static struct pid *good_sigevent(sigevent_t * event)
433 return task_pid(rtn); 433 return task_pid(rtn);
434} 434}
435 435
436void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock) 436void posix_timers_register_clock(const clockid_t clock_id,
437 struct k_clock *new_clock)
437{ 438{
438 if ((unsigned) clock_id >= MAX_CLOCKS) { 439 if ((unsigned) clock_id >= MAX_CLOCKS) {
439 printk(KERN_WARNING "POSIX clock register failed for clock_id %d\n", 440 printk(KERN_WARNING "POSIX clock register failed for clock_id %d\n",
@@ -454,7 +455,7 @@ void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock)
454 455
455 posix_clocks[clock_id] = *new_clock; 456 posix_clocks[clock_id] = *new_clock;
456} 457}
457EXPORT_SYMBOL_GPL(register_posix_clock); 458EXPORT_SYMBOL_GPL(posix_timers_register_clock);
458 459
459static struct k_itimer * alloc_posix_timer(void) 460static struct k_itimer * alloc_posix_timer(void)
460{ 461{