Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1288560
| From | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/7] printk: Start printing handover kthreads on demand |
| Date | 2015-12-10 16:10 +0100 |
| Message-ID | <qEb10-7RF-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
> +static void printk_offload_init(void)
> +{
> + mutex_lock(&printk_kthread_mutex);
> + if (num_possible_cpus() <= 1) {
> + /* Offloading doesn't make sense. Disable print offloading. */
> + printk_offload_chars = 0;
> + } else
> + printk_start_offload_kthreads();
> + mutex_unlock(&printk_kthread_mutex);
> +}
A silly minor nitpick
+ } else {
printk_start_offload_kthreads();
+ }
-ss
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 2/7] printk: Start printing handover kthreads on demand Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2015-12-10 16:10 +0100 Re: [PATCH 2/7] printk: Start printing handover kthreads on demand Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2015-12-10 16:10 +0100
csiph-web