/* Store the resolution of the clock selected by @which_clock in the variable pointed to by @tp.  */
int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp)
/* Store the resolution of the clock selected by @which_clock in the variable pointed to by @tp.  */
int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp)
{
	struct hrtimer_cpu_base *cpu_base;
	cpu_base = &__raw_get_cpu_var(hrtimer_bases);
	*tp = ktime_to_timespec(cpu_base->clock_base[which_clock].resolution);
	return 0;
}