Skip to content

Commit

Permalink
posix-cpu-timers: Remove cputime_expires
Browse files Browse the repository at this point in the history
The last users of the magic struct cputime based expiry cache are
gone. Remove the leftovers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192921.790209622@linutronix.de
  • Loading branch information
Thomas Gleixner committed Aug 28, 2019
1 parent 001f797 commit 46b8839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
9 changes: 2 additions & 7 deletions include/linux/posix-timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,14 @@ static inline int clockid_to_fd(const clockid_t clk)
#ifdef CONFIG_POSIX_TIMERS
/**
* posix_cputimers - Container for posix CPU timer related data
* @cputime_expires: Earliest-expiration cache task_cputime based
* @expiries: Earliest-expiration cache array based
* @cpu_timers: List heads to queue posix CPU timers
*
* Used in task_struct and signal_struct
*/
struct posix_cputimers {
/* Temporary union until all users are cleaned up */
union {
struct task_cputime cputime_expires;
u64 expiries[CPUCLOCK_MAX];
};
struct list_head cpu_timers[CPUCLOCK_MAX];
u64 expiries[CPUCLOCK_MAX];
struct list_head cpu_timers[CPUCLOCK_MAX];
};

static inline void posix_cputimers_init(struct posix_cputimers *pct)
Expand Down
10 changes: 0 additions & 10 deletions kernel/time/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@

#include "posix-timers.h"

static inline void temporary_check(void)
{
BUILD_BUG_ON(offsetof(struct task_cputime, stime) !=
CPUCLOCK_PROF * sizeof(u64));
BUILD_BUG_ON(offsetof(struct task_cputime, utime) !=
CPUCLOCK_VIRT * sizeof(u64));
BUILD_BUG_ON(offsetof(struct task_cputime, sum_exec_runtime) !=
CPUCLOCK_SCHED * sizeof(u64));
}

static void posix_cpu_timer_rearm(struct k_itimer *timer);

void posix_cputimers_group_init(struct posix_cputimers *pct, u64 cpu_limit)
Expand Down

0 comments on commit 46b8839

Please sign in to comment.