* Return information about system clocks. */
| 764 | * Return information about system clocks. |
| 765 | */ |
| 766 | static int |
| 767 | sysctl_kern_clockrate(SYSCTL_HANDLER_ARGS) |
| 768 | { |
| 769 | struct clockinfo clkinfo; |
| 770 | /* |
| 771 | * Construct clockinfo structure. |
| 772 | */ |
| 773 | bzero(&clkinfo, sizeof(clkinfo)); |
| 774 | clkinfo.hz = hz; |
| 775 | clkinfo.tick = tick; |
| 776 | clkinfo.profhz = profhz; |
| 777 | clkinfo.stathz = stathz ? stathz : hz; |
| 778 | return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req)); |
| 779 | } |
| 780 | |
| 781 | SYSCTL_PROC(_kern, KERN_CLOCKRATE, clockrate, |
| 782 | CTLTYPE_STRUCT|CTLFLAG_RD|CTLFLAG_MPSAFE, |
nothing calls this directly
no test coverage detected