|
@@ -171,7 +171,7 @@ static int __init appldata_os_init(void)
|
|
int rc, max_size;
|
|
int rc, max_size;
|
|
|
|
|
|
max_size = sizeof(struct appldata_os_data) +
|
|
max_size = sizeof(struct appldata_os_data) +
|
|
- (NR_CPUS * sizeof(struct appldata_os_per_cpu));
|
|
|
|
|
|
+ (num_possible_cpus() * sizeof(struct appldata_os_per_cpu));
|
|
if (max_size > APPLDATA_MAX_REC_SIZE) {
|
|
if (max_size > APPLDATA_MAX_REC_SIZE) {
|
|
pr_err("Maximum OS record size %i exceeds the maximum "
|
|
pr_err("Maximum OS record size %i exceeds the maximum "
|
|
"record size %i\n", max_size, APPLDATA_MAX_REC_SIZE);
|
|
"record size %i\n", max_size, APPLDATA_MAX_REC_SIZE);
|