linux_dsm_epyc7002/arch/s390/appldata
Gerald Schaefer 6967037baf s390/appldata_os: fix cpu array size calculation
The cpu array size calculation uses the NR_CPUS config option, which
was recently increased from 64 to 256. With a value of 256, the cpu
array will no longer fit into one APPLDATA record and loading the
appldata_os module fails with the following error:
could not insert 'appldata_os': Cannot allocate memory

Use num_possible_cpus() instead of NR_CPUS. For z/VM, this will still
result in a value of 64. This is not true for LPAR, but the appldata
feature is not available for LPAR.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2014-03-07 15:25:55 +01:00
..
appldata_base.c s390/appldata: restore missing init_virt_timer() 2014-01-29 09:07:51 +01:00
appldata_mem.c s390/appldata_mem: do not use static data 2013-06-26 21:10:30 +02:00
appldata_net_sum.c s390/appldata_net_sum: do not use static data 2013-06-26 21:10:31 +02:00
appldata_os.c s390/appldata_os: fix cpu array size calculation 2014-03-07 15:25:55 +01:00
appldata.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00