Thanks, merged to master at a7bd47c1b299..bc87a54562ab (from, to]

You can see the entire diff with 'git diff' or at
https://github.com/brho/akaros/compare/a7bd47c1b299...bc87a54562ab

On 2015-11-13 at 15:37 Barret Rhoden <[email protected]> wrote:
> This popped up if you ran Akaros on a single core machine.  In that
> case, you'd have 0 CG cores, which means the kernel gives you 0
> vcores.  However, SCPs think they have one vcore.  If a process runs
> at all, it needs to think it has at least one vcore.
> 
> Rebuild busybox.
> 
> Signed-off-by: Barret Rhoden <[email protected]>
> ---
>  user/parlib/include/vcore.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/user/parlib/include/vcore.h b/user/parlib/include/vcore.h
> index 66b6b8134291..05e538ade7d5 100644
> --- a/user/parlib/include/vcore.h
> +++ b/user/parlib/include/vcore.h
> @@ -77,7 +77,7 @@ bool check_vcoreid(const char *str, uint32_t
> vcoreid); /* Static inlines */
>  static inline uint32_t max_vcores(void)
>  {
> -     return MIN(__procinfo.max_vcores, MAX_VCORES);
> +     return MAX(1, MIN(__procinfo.max_vcores, MAX_VCORES));
>  }
>  
>  static inline uint32_t num_vcores(void)

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to