projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proc: Supply PDE attribute setting accessor functions
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
profile.c
diff --git
a/kernel/profile.c
b/kernel/profile.c
index 524ce5e29d3f61dd282abfe5f8e8a76754a61966..0bf400737660d65a03280c23df130c9e17c776ea 100644
(file)
--- a/
kernel/profile.c
+++ b/
kernel/profile.c
@@
-600,7
+600,7
@@
int __ref create_proc_profile(void) /* false positive from hotcpu_notifier */
NULL, &proc_profile_operations);
if (!entry)
return 0;
-
entry->size = (1+prof_len) * sizeof(atomic_t
);
+
proc_set_size(entry, (1 + prof_len) * sizeof(atomic_t)
);
hotcpu_notifier(profile_cpu_callback, 0);
return 0;
}