Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234603
b: refs/heads/master
c: ebaac75
h: refs/heads/master
i:
  234601: 90a78ad
  234599: ab31f34
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 2, 2011
1 parent 98f78a3 commit a5c8bf8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 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: e5e542eea9075dd008993c2ee80b2cc9f31fc494
refs/heads/master: ebaac757acae0431e2c79c00e09f1debdabbddd7
5 changes: 2 additions & 3 deletions trunk/drivers/char/mmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,11 @@ static int sgi_timer_set(struct k_itimer *timr, int flags,
static int sgi_clock_getres(const clockid_t which_clock, struct timespec *tp)
{
tp->tv_sec = 0;
tp->tv_nsec = sgi_clock.res;
tp->tv_nsec = sgi_clock_period;
return 0;
}

static struct k_clock sgi_clock = {
.res = 0,
.clock_set = sgi_clock_set,
.clock_get = sgi_clock_get,
.clock_getres = sgi_clock_getres,
Expand Down Expand Up @@ -840,7 +839,7 @@ static int __init mmtimer_init(void)
(unsigned long) node);
}

sgi_clock_period = sgi_clock.res = NSEC_PER_SEC / sn_rtc_cycles_per_second;
sgi_clock_period = NSEC_PER_SEC / sn_rtc_cycles_per_second;
register_posix_clock(CLOCK_SGI_CYCLE, &sgi_clock);

printk(KERN_INFO "%s: v%s, %ld MHz\n", MMTIMER_DESC, MMTIMER_VERSION,
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/posix-timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ struct k_itimer {
};

struct k_clock {
int res; /* in nanoseconds */
int (*clock_getres) (const clockid_t which_clock, struct timespec *tp);
int (*clock_set) (const clockid_t which_clock,
const struct timespec *tp);
Expand Down
2 changes: 0 additions & 2 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ static inline int invalid_clockid(const clockid_t which_clock)
return 1;
if (posix_clocks[which_clock].clock_getres != NULL)
return 0;
if (posix_clocks[which_clock].res != 0)
return 0;
return 1;
}

Expand Down

0 comments on commit a5c8bf8

Please sign in to comment.