#ifdef __KERNEL__# define HZ CONFIG_HZ /* Internal kernel timer frequency */# define USER_HZ 100 /* User interfaces are in "ticks" */# define CLOCKS_PER_SEC (USER_HZ) /* like times() */#else# define HZ 100#endif
#ifdef __KERNEL__# define HZ 1000 /* Internal kernel timer frequency */# define USER_HZ 1000 /* User interfaces are in "ticks" */# define CLOCKS_PER_SEC (USER_HZ) /* like times() */#else# define HZ 1000#endif
CONFIG_HZ=100
CONFIG_HZ=1000