Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84680
b: refs/heads/master
c: cf4fc6c
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Feb 8, 2008
1 parent 06100b0 commit e9fa653
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b858e6ff9a38b987a83d22e6f2a2f621c80608d
refs/heads/master: cf4fc6cb76e50b01666e28a9f4b2e6fbcbb96d5f
2 changes: 1 addition & 1 deletion trunk/include/linux/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ extern void getboottime(struct timespec *ts);
extern void monotonic_to_bootbased(struct timespec *ts);

extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
extern int timekeeping_is_continuous(void);
extern int timekeeping_valid_for_hres(void);
extern void update_wall_time(void);
extern void update_xtime_cache(u64 nsec);

Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ int tick_check_oneshot_change(int allow_nohz)
if (ts->nohz_mode != NOHZ_MODE_INACTIVE)
return 0;

if (!timekeeping_is_continuous() || !tick_is_oneshot_available())
if (!timekeeping_valid_for_hres() || !tick_is_oneshot_available())
return 0;

if (!allow_nohz)
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ static inline s64 __get_nsec_offset(void) { return 0; }
#endif

/**
* timekeeping_is_continuous - check to see if timekeeping is free running
* timekeeping_valid_for_hres - Check if timekeeping is suitable for hres
*/
int timekeeping_is_continuous(void)
int timekeeping_valid_for_hres(void)
{
unsigned long seq;
int ret;
Expand Down

0 comments on commit e9fa653

Please sign in to comment.