/kernel/linux/linux-5.10/kernel/time/ |
H A D | timer.c | 963 struct timer_base *base, *new_base; in __mod_timer() local 1027 new_base = get_target_base(base, timer->flags); in __mod_timer() 1029 if (base != new_base) { in __mod_timer() 1042 base = new_base; in __mod_timer() 1157 struct timer_base *new_base, *base; in add_timer_on() local 1162 new_base = get_timer_cpu_base(timer->flags, cpu); in add_timer_on() 1170 if (base != new_base) { in add_timer_on() 1174 base = new_base; in add_timer_on() 1929 static void migrate_timer_list(struct timer_base *new_base, in migrate_timer_list() argument 1933 int cpu = new_base in migrate_timer_list() 1951 struct timer_base *new_base; __migrate_timers() local 1986 migrate_timer_list(struct timer_base *new_base, struct hlist_head *head) migrate_timer_list() argument 2034 struct timer_base *new_base; timers_dead_cpu() local [all...] |
H A D | hrtimer.c | 193 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument 197 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target() 198 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target() 229 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local 235 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base() 237 if (base != new_base) { in switch_hrtimer_base() 239 * We are trying to move timer to new_base. in switch_hrtimer_base() 253 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base() 256 hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base() 257 raw_spin_unlock(&new_base in switch_hrtimer_base() 1131 struct hrtimer_clock_base *new_base; __hrtimer_start_range_ns() local 2116 migrate_hrtimer_list(struct hrtimer_clock_base *old_base, struct hrtimer_clock_base *new_base, bool remove_pinned) migrate_hrtimer_list() argument 2170 struct hrtimer_cpu_base *old_base, *new_base; __migrate_hrtimers() local 2226 migrate_hrtimer_list(struct hrtimer_clock_base *old_base, struct hrtimer_clock_base *new_base) migrate_hrtimer_list() argument 2258 struct hrtimer_cpu_base *old_base, *new_base; hrtimers_dead_cpu() local [all...] |
H A D | ntp.c | 262 u64 new_base; in ntp_update_frequency() local 271 new_base = div_u64(second_length, NTP_INTERVAL_FREQ); in ntp_update_frequency() 277 tick_length += new_base - tick_length_base; in ntp_update_frequency() 278 tick_length_base = new_base; in ntp_update_frequency()
|
/kernel/linux/linux-6.6/kernel/time/ |
H A D | hrtimer.c | 194 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument 198 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target() 199 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target() 230 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local 236 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base() 238 if (base != new_base) { in switch_hrtimer_base() 240 * We are trying to move timer to new_base. in switch_hrtimer_base() 254 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base() 257 hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base() 258 raw_spin_unlock(&new_base in switch_hrtimer_base() 1220 struct hrtimer_clock_base *new_base; __hrtimer_start_range_ns() local 2194 migrate_hrtimer_list(struct hrtimer_clock_base *old_base, struct hrtimer_clock_base *new_base) migrate_hrtimer_list() argument 2226 struct hrtimer_cpu_base *old_base, *new_base; hrtimers_cpu_dying() local [all...] |
H A D | timer.c | 1016 struct timer_base *base, *new_base; in __mod_timer() local 1096 new_base = get_target_base(base, timer->flags); in __mod_timer() 1098 if (base != new_base) { in __mod_timer() 1111 base = new_base; in __mod_timer() 1259 struct timer_base *new_base, *base; in add_timer_on() local 1267 new_base = get_timer_cpu_base(timer->flags, cpu); in add_timer_on() 1282 if (base != new_base) { in add_timer_on() 1286 base = new_base; in add_timer_on() 2219 static void migrate_timer_list(struct timer_base *new_base, in migrate_timer_list() argument 2223 int cpu = new_base in migrate_timer_list() 2241 struct timer_base *new_base; __migrate_timers() local 2276 migrate_timer_list(struct timer_base *new_base, struct hlist_head *head) migrate_timer_list() argument 2324 struct timer_base *new_base; timers_dead_cpu() local [all...] |
H A D | ntp.c | 262 u64 new_base; in ntp_update_frequency() local 271 new_base = div_u64(second_length, NTP_INTERVAL_FREQ); in ntp_update_frequency() 277 tick_length += new_base - tick_length_base; in ntp_update_frequency() 278 tick_length_base = new_base; in ntp_update_frequency()
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
H A D | ldt_gdt.c | 738 unsigned long new_base; in test_gdt_invalidation() local 828 syscall(SYS_arch_prctl, ARCH_GET_FS, &new_base); in test_gdt_invalidation() 848 if (sel == 0 && new_base != 0) { in test_gdt_invalidation() 850 printf("[FAIL]\tNew FSBASE was 0x%lx\n", new_base); in test_gdt_invalidation() 881 syscall(SYS_arch_prctl, ARCH_GET_GS, &new_base); in test_gdt_invalidation() 901 if (sel == 0 && new_base != 0) { in test_gdt_invalidation() 903 printf("[FAIL]\tNew GSBASE was 0x%lx\n", new_base); in test_gdt_invalidation()
|
/kernel/linux/linux-6.6/tools/testing/selftests/x86/ |
H A D | ldt_gdt.c | 738 unsigned long new_base; in test_gdt_invalidation() local 828 syscall(SYS_arch_prctl, ARCH_GET_FS, &new_base); in test_gdt_invalidation() 848 if (sel == 0 && new_base != 0) { in test_gdt_invalidation() 850 printf("[FAIL]\tNew FSBASE was 0x%lx\n", new_base); in test_gdt_invalidation() 881 syscall(SYS_arch_prctl, ARCH_GET_GS, &new_base); in test_gdt_invalidation() 901 if (sel == 0 && new_base != 0) { in test_gdt_invalidation() 903 printf("[FAIL]\tNew GSBASE was 0x%lx\n", new_base); in test_gdt_invalidation()
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | signal.c | 754 unsigned long new_base = base - size; in extframe_alloc() local 756 new_base = round_down(new_base, (align < 16 ? 16 : align)); in extframe_alloc() 757 new_base -= sizeof(struct sctx_info); in extframe_alloc() 759 layout->addr = (void *)new_base; in extframe_alloc() 760 layout->size = (unsigned int)(base - new_base); in extframe_alloc() 763 return new_base; in extframe_alloc()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | signal.c | 847 unsigned long new_base = base - size; in extframe_alloc() local 849 new_base = round_down(new_base, (align < 16 ? 16 : align)); in extframe_alloc() 850 new_base -= sizeof(struct sctx_info); in extframe_alloc() 852 layout->addr = (void *)new_base; in extframe_alloc() 853 layout->size = (unsigned int)(base - new_base); in extframe_alloc() 856 return new_base; in extframe_alloc()
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
H A D | init_64.c | 142 unsigned long new_base = PAGE_ALIGN(base); in read_obp_memory() local 144 size -= new_base - base; in read_obp_memory() 147 base = new_base; in read_obp_memory()
|
/kernel/linux/linux-6.6/arch/sparc/mm/ |
H A D | init_64.c | 143 unsigned long new_base = PAGE_ALIGN(base); in read_obp_memory() local 145 size -= new_base - base; in read_obp_memory() 148 base = new_base; in read_obp_memory()
|