Home
last modified time | relevance | path

Searched refs:HZ (Results 1 – 25 of 2410) sorted by relevance

12345678910>>...97

/Linux-v6.6/include/linux/
Djiffies.h23 #if HZ >= 12 && HZ < 24
25 #elif HZ >= 24 && HZ < 48
27 #elif HZ >= 48 && HZ < 96
29 #elif HZ >= 96 && HZ < 192
31 #elif HZ >= 192 && HZ < 384
33 #elif HZ >= 384 && HZ < 768
35 #elif HZ >= 768 && HZ < 1536
37 #elif HZ >= 1536 && HZ < 3072
39 #elif HZ >= 3072 && HZ < 6144
41 #elif HZ >= 6144 && HZ < 12288
[all …]
/Linux-v6.6/kernel/time/
Dtime.c379 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) in jiffies_to_msecs()
380 return (MSEC_PER_SEC / HZ) * j; in jiffies_to_msecs()
381 #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) in jiffies_to_msecs()
382 return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); in jiffies_to_msecs()
406 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
408 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
409 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
665 # if HZ < USER_HZ in jiffies_to_clock_t()
666 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
668 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
[all …]
Dclocksource-wdtest.c98 schedule_timeout_uninterruptible(HZ / 10); in wdtest_ktime_clocksource_reset()
110 schedule_timeout_uninterruptible(holdoff * HZ); in wdtest_func()
121 schedule_timeout_uninterruptible(HZ); in wdtest_func()
151 schedule_timeout_uninterruptible(2 * HZ); in wdtest_func()
161 schedule_timeout_uninterruptible(2 * HZ); in wdtest_func()
/Linux-v6.6/Documentation/translations/zh_CN/scheduler/
Dsched-nice-design.rst20 nice级别的支持在历史上是与时间片长度耦合的,而时间片单位是由HZ滴答驱动的,
21 所以最小的时间片是1/HZ
47 这种方法在一定程度上奏效了一段时间,但后来HZ=1000时,它导致1 jiffy为
53 因此,对于HZ=1000,我们将nice +19改为5毫秒,因为这感觉像是正确的最小
54 粒度——这相当于5%的CPU利用率。但nice +19的根本的HZ敏感属性依然保持不变,
58 总结一下:我们一直想让nice各级别一致性更强,但在HZ和jiffies的限制下,以及
85 为了解决第一个抱怨(nice级别不够“有力”),调度器与“时间片”、HZ的概念
87 更一致的nice +19支持:在新的调度器中,nice +19的任务得到一个HZ无关的
/Linux-v6.6/arch/microblaze/include/asm/
Ddelay.h36 #define __MAX_UDELAY (226050910UL/HZ) /* maximum udelay argument */
37 #define __MAX_NDELAY (4294967295UL/HZ) /* maximum ndelay argument */
65 __udelay((n) * (19 * HZ)); \
67 __udelay((n) * (19 * HZ)); \
77 __udelay((n) * HZ); \
79 __udelay((n) * HZ); \
/Linux-v6.6/arch/riscv/lib/
Ddelay.c46 #define UDELAY_MULT (2147UL * HZ + 483648UL * HZ / 1000000UL)
49 #if HZ > MAX_UDELAY_HZ
69 #define NDELAY_MULT ((unsigned long long)(2199ULL * HZ + 23255550ULL * HZ / 1000000000ULL))
72 #if HZ > MAX_NDELAY_HZ
/Linux-v6.6/net/netrom/
Dsysctl_net_netrom.c18 static int min_t1[] = {5 * HZ};
19 static int max_t1[] = {600 * HZ};
21 static int min_t2[] = {1 * HZ};
22 static int max_t2[] = {60 * HZ};
23 static int min_t4[] = {1 * HZ};
24 static int max_t4[] = {1000 * HZ};
26 static int min_idle[] = {0 * HZ};
27 static int max_idle[] = {65535 * HZ};
/Linux-v6.6/net/bridge/
Dbr_private_stp.h16 #define BR_MIN_HELLO_TIME (1*HZ)
17 #define BR_MAX_HELLO_TIME (10*HZ)
19 #define BR_MIN_FORWARD_DELAY (2*HZ)
20 #define BR_MAX_FORWARD_DELAY (30*HZ)
22 #define BR_MIN_MAX_AGE (6*HZ)
23 #define BR_MAX_MAX_AGE (40*HZ)
/Linux-v6.6/arch/mips/sni/
Dtime.c15 #define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
76 #define SNI_8254_TCSAMP_COUNTER ((SNI_8254_TICK_RATE / HZ) + 255)
107 return (ct1 - ct0) / (500000/HZ) * (500000/HZ); in dosample()
153 (int) (r4k_tick / (500000 / HZ)), in plat_time_init()
154 (int) (r4k_tick % (500000 / HZ))); in plat_time_init()
156 mips_hpt_frequency = r4k_tick * HZ; in plat_time_init()
/Linux-v6.6/net/rose/
Dsysctl_net_rose.c12 static int min_timer[] = {1 * HZ};
13 static int max_timer[] = {300 * HZ};
14 static int min_idle[] = {0 * HZ};
15 static int max_idle[] = {65535 * HZ};
17 static int min_ftimer[] = {60 * HZ};
18 static int max_ftimer[] = {600 * HZ};
/Linux-v6.6/include/scsi/
Dscsi.h19 SCSI_DEFAULT_EH_TIMEOUT = 10 * HZ,
134 #define FORMAT_UNIT_TIMEOUT (2 * 60 * 60 * HZ)
135 #define START_STOP_TIMEOUT (60 * HZ)
136 #define MOVE_MEDIUM_TIMEOUT (5 * 60 * HZ)
137 #define READ_ELEMENT_STATUS_TIMEOUT (5 * 60 * HZ)
138 #define READ_DEFECT_DATA_TIMEOUT (60 * HZ )
/Linux-v6.6/arch/mips/sgi-ip22/
Dip22-time.c63 return (ct1 - ct0) / (500000/HZ) * (500000/HZ); in dosample()
109 (int) (r4k_tick / (500000 / HZ)), in plat_time_init()
110 (int) (r4k_tick % (500000 / HZ))); in plat_time_init()
112 mips_hpt_frequency = r4k_tick * HZ; in plat_time_init()
/Linux-v6.6/drivers/net/ethernet/dec/tulip/
Dtimer.c24 int next_tick = 2*HZ; in tulip_media_task()
46 next_tick = 60*HZ; in tulip_media_task()
104 next_tick = (24*HZ)/10; in tulip_media_task()
111 next_tick = 3*HZ; in tulip_media_task()
114 next_tick = 60*HZ; in tulip_media_task()
145 int next_tick = 60*HZ; in mxic_timer()
161 int next_tick = 2*HZ; in comet_timer()
Dpnic.c68 if (! tp->nwayset || time_after(jiffies, dev_trans_start(dev) + 1*HZ)) { in pnic_lnk_change()
92 int next_tick = 60*HZ; in pnic_timer()
106 next_tick = 3*HZ; in pnic_timer()
119 next_tick = 1*HZ; in pnic_timer()
123 next_tick = 60*HZ; in pnic_timer()
131 next_tick = 3*HZ; in pnic_timer()
134 next_tick = 1*HZ; in pnic_timer()
/Linux-v6.6/drivers/net/wireguard/
Dtimers.c62 jiffies + REJECT_AFTER_TIME * 3 * HZ); in wg_expired_retransmit_handshake()
87 jiffies + KEEPALIVE_TIMEOUT * HZ); in wg_expired_send_keepalive()
149 jiffies + (KEEPALIVE_TIMEOUT + REKEY_TIMEOUT) * HZ + in wg_timers_data_sent()
159 jiffies + KEEPALIVE_TIMEOUT * HZ); in wg_timers_data_received()
185 jiffies + REKEY_TIMEOUT * HZ + in wg_timers_handshake_initiated()
206 jiffies + REJECT_AFTER_TIME * 3 * HZ); in wg_timers_session_derived()
216 jiffies + peer->persistent_keepalive_interval * HZ); in wg_timers_any_authenticated_packet_traversal()
/Linux-v6.6/arch/ia64/include/asm/
Dparam.h15 # define HZ CONFIG_HZ macro
16 # define USER_HZ HZ
17 # define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
/Linux-v6.6/kernel/
DKconfig.hz16 environment leading to NR_CPUS * HZ number of timer interrupts
21 bool "100 HZ"
28 bool "250 HZ"
36 bool "300 HZ"
44 bool "1000 HZ"
51 config HZ config
/Linux-v6.6/net/netfilter/
Dnf_conntrack_proto_udp.c28 [UDP_CT_UNREPLIED] = 30*HZ,
29 [UDP_CT_REPLIED] = 120*HZ,
102 ct->proto.udp.stream_ts = 2 * HZ + jiffies; in nf_conntrack_udp_packet()
237 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_UNREPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
241 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_REPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
252 htonl(timeouts[UDP_CT_UNREPLIED] / HZ)) || in udp_timeout_obj_to_nlattr()
254 htonl(timeouts[UDP_CT_REPLIED] / HZ))) in udp_timeout_obj_to_nlattr()
278 un->offload_timeout = 30 * HZ; in nf_conntrack_udp_init_net()
Dnf_conntrack_proto_gre.c46 [GRE_CT_UNREPLIED] = 30*HZ,
47 [GRE_CT_REPLIED] = 180*HZ,
191 (ct->proto.gre.timeout / HZ), in gre_print_conntrack()
192 (ct->proto.gre.stream_timeout / HZ)); in gre_print_conntrack()
262 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_UNREPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
266 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_REPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
277 htonl(timeouts[GRE_CT_UNREPLIED] / HZ)) || in gre_timeout_obj_to_nlattr()
279 htonl(timeouts[GRE_CT_REPLIED] / HZ))) in gre_timeout_obj_to_nlattr()
/Linux-v6.6/net/ax25/
Daf_ax25.c347 ax25->dtimer.expires = jiffies + 2 * HZ; in ax25_destroy_socket()
379 if (ax25_ctl.arg > ULONG_MAX / HZ && ax25_ctl.cmd != AX25_KILL) in ax25_ctl_ioctl()
418 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
420 ax25->rtt = (ax25_ctl.arg * HZ) / 2; in ax25_ctl_ioctl()
421 ax25->t1 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
425 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
427 ax25->t2 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
438 if (ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
440 ax25->t3 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
444 if (ax25_ctl.arg > ULONG_MAX / (60 * HZ)) in ax25_ctl_ioctl()
[all …]
/Linux-v6.6/arch/loongarch/include/asm/
Ddelay.h18 #if HZ >= 1000
20 #elif HZ <= 200
23 #define MAX_UDELAY_MS (1000 / HZ)
/Linux-v6.6/arch/mips/include/asm/
Ddelay.h24 #if HZ >= 1000
26 #elif HZ <= 200
29 #define MAX_UDELAY_MS (1000 / HZ)
/Linux-v6.6/include/video/
Dudlfb.h78 #define GET_URB_TIMEOUT HZ
79 #define FREE_URB_TIMEOUT (HZ*2)
96 #define DL_DEFIO_WRITE_DELAY msecs_to_jiffies(HZ <= 300 ? 4 : 10) /* optimal value for 720p vide…
97 #define DL_DEFIO_WRITE_DISABLE (HZ*60) /* "disable" with long delay */
/Linux-v6.6/fs/nfs/
Dnfs4renewd.c121 if (timeout < 5 * HZ) in nfs4_schedule_state_renewal()
122 timeout = 5 * HZ; in nfs4_schedule_state_renewal()
124 __func__, (timeout + HZ - 1) / HZ); in nfs4_schedule_state_renewal()
Dnamespace.c30 int nfs_mountpoint_expiry_timeout = 500 * HZ;
333 if (num >= INT_MAX / HZ) in param_set_nfs_timeout()
336 num *= HZ; in param_set_nfs_timeout()
341 *((int *)kp->arg) = -1*HZ; in param_set_nfs_timeout()
352 if (num >= INT_MAX - (HZ - 1)) in param_get_nfs_timeout()
353 num = INT_MAX / HZ; in param_get_nfs_timeout()
355 num = (num + (HZ - 1)) / HZ; in param_get_nfs_timeout()

12345678910>>...97