vela fs procfs add clock procfs entry
procfs enrty add clock feature procfs operations Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
15e78470f8
commit
be767dde01
|
@ -107,7 +107,7 @@ static int clk_procfs_stat(const char *relpath, struct stat *buf);
|
|||
|
||||
#if !defined(CONFIG_FS_PROCFS_EXCLUDE_CLK) && defined(CONFIG_FS_PROCFS)
|
||||
|
||||
const struct procfs_operations clk_procfsoperations =
|
||||
const struct procfs_operations g_clk_operations =
|
||||
{
|
||||
clk_procfs_open, /* open */
|
||||
clk_procfs_close, /* close */
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
* External Definitions
|
||||
****************************************************************************/
|
||||
|
||||
extern const struct procfs_operations g_clk_operations;
|
||||
extern const struct procfs_operations g_cpuinfo_operations;
|
||||
extern const struct procfs_operations g_cpuload_operations;
|
||||
extern const struct procfs_operations g_critmon_operations;
|
||||
|
@ -97,6 +98,10 @@ static const struct procfs_entry_s g_procfs_entries[] =
|
|||
{ "[0-9]*", &g_proc_operations, PROCFS_DIR_TYPE },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CLK) && !defined(CONFIG_FS_PROCFS_EXCLUDE_CLK)
|
||||
{ "clk", &g_clk_operations, PROCFS_FILE_TYPE },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_HAVE_CPUINFO) && !defined(CONFIG_FS_PROCFS_EXCLUDE_CPUINFO)
|
||||
{ "cpuinfo", &g_cpuinfo_operations, PROCFS_FILE_TYPE },
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue