X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=kernel%2Fprofile.c;h=5b20fe977bed0812ccb79f6cd76c43a9e0890720;hb=1ef4d4242d9c494c49ae1ae66dc938fce0272816;hp=9bfadb248dd877b009e49710db79957f13188c5d;hpb=b643b0fdbc59cf6bbb086974b29d2571e9e9f646;p=karo-tx-linux.git diff --git a/kernel/profile.c b/kernel/profile.c index 9bfadb248dd8..5b20fe977bed 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -26,6 +26,7 @@ #include #include #include +#include struct profile_hit { u32 pc, hits; @@ -340,6 +341,7 @@ static int __devinit profile_cpu_callback(struct notifier_block *info, switch (action) { case CPU_UP_PREPARE: + case CPU_UP_PREPARE_FROZEN: node = cpu_to_node(cpu); per_cpu(cpu_profile_flip, cpu) = 0; if (!per_cpu(cpu_profile_hits, cpu)[1]) { @@ -365,10 +367,13 @@ static int __devinit profile_cpu_callback(struct notifier_block *info, __free_page(page); return NOTIFY_BAD; case CPU_ONLINE: + case CPU_ONLINE_FROZEN: cpu_set(cpu, prof_cpu_mask); break; case CPU_UP_CANCELED: + case CPU_UP_CANCELED_FROZEN: case CPU_DEAD: + case CPU_DEAD_FROZEN: cpu_clear(cpu, prof_cpu_mask); if (per_cpu(cpu_profile_hits, cpu)[0]) { page = virt_to_page(per_cpu(cpu_profile_hits, cpu)[0]);