[PATCH] LoongArch: Get correct cores_per_package for SMT systems