X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fprofile.c;h=28cf26ad2d247e497411f4603496209b1f8493f0;hb=e349792a385ed47390d156155b1a1e19af1bf163;hp=7724e0409bae7222638fae02c1fe0924e4ae751a;hpb=0702b30dd821ac8a4103ddbe545518713fdca9be;p=karo-tx-linux.git diff --git a/kernel/profile.c b/kernel/profile.c index 7724e0409bae..28cf26ad2d24 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -111,12 +111,6 @@ int __ref profile_init(void) /* only text is profiled */ prof_len = (_etext - _stext) >> prof_shift; buffer_bytes = prof_len*sizeof(atomic_t); - if (!slab_is_available()) { - prof_buffer = alloc_bootmem(buffer_bytes); - alloc_bootmem_cpumask_var(&prof_cpu_mask); - cpumask_copy(prof_cpu_mask, cpu_possible_mask); - return 0; - } if (!alloc_cpumask_var(&prof_cpu_mask, GFP_KERNEL)) return -ENOMEM;