clk: Put the sysctls under hw.clock instead of clock

This is more consistant with hw.regulator and other hardware related
sysctls.
This commit is contained in:
Emmanuel Vadot 2018-04-27 00:12:00 +00:00
parent 14ec0f3a3b
commit ee710ecf32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333047
3 changed files with 3 additions and 9 deletions

View File

@ -50,6 +50,8 @@ __FBSDID("$FreeBSD$");
#endif
#include <dev/extres/clk/clk.h>
SYSCTL_NODE(_hw, OID_AUTO, clock, CTLFLAG_RD, NULL, "Clocks");
MALLOC_DEFINE(M_CLOCK, "clocks", "Clock framework");
/* Forward declarations. */
@ -570,7 +572,7 @@ clknode_create(struct clkdom * clkdom, clknode_class_t clknode_class,
sysctl_ctx_init(&clknode->sysctl_ctx);
clknode_oid = SYSCTL_ADD_NODE(&clknode->sysctl_ctx,
SYSCTL_STATIC_CHILDREN(_clock),
SYSCTL_STATIC_CHILDREN(_hw_clock),
OID_AUTO, clknode->name,
CTLFLAG_RD, 0, "A clock node");

View File

@ -90,11 +90,6 @@ SYSCTL_ROOT_NODE(OID_AUTO, regression, CTLFLAG_RW, 0,
"Regression test MIB");
#endif
#ifdef EXT_RESOURCES
SYSCTL_ROOT_NODE(OID_AUTO, clock, CTLFLAG_RW, 0,
"Clocks");
#endif
SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD|CTLFLAG_MPSAFE,
kern_ident, 0, "Kernel identifier");

View File

@ -1009,9 +1009,6 @@ SYSCTL_DECL(_compat);
SYSCTL_DECL(_regression);
SYSCTL_DECL(_security);
SYSCTL_DECL(_security_bsd);
#ifdef EXT_RESOURCES
SYSCTL_DECL(_clock);
#endif
extern char machine[];
extern char osrelease[];