]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blobdiff - arch/parisc/kernel/alternative.c
parisc: Use num_present_cpus() in alternative patching code
[mirror_ubuntu-kernels.git] / arch / parisc / kernel / alternative.c
index 66f5672c70bd469e6e1a261c4a7c080be1d808f5..25c4d6c3375db357f73c12e48826c941b92fc621 100644 (file)
@@ -25,7 +25,7 @@ void __init_or_module apply_alternatives(struct alt_instr *start,
 {
        struct alt_instr *entry;
        int index = 0, applied = 0;
-       int num_cpus = num_online_cpus();
+       int num_cpus = num_present_cpus();
        u16 cond_check;
 
        cond_check = ALT_COND_ALWAYS |